Struct itron_asp3::semaphore::SemaphoreRef[][src]

pub struct SemaphoreRef<'a> { /* fields omitted */ }
This is supported on crate feature unstable only.
Expand description

A borrowed reference to a semaphore.

Implementations

Construct a SemaphoreRef from a raw object ID.

Safety

See Object ID Wrappers.

Get the raw object ID.

Get the raw object ID as abi::NonNullID.

This is supported on crate feature dcre only.

del_sem: Delete the semaphore.

Safety

See Object ID Wrappers.

ref_sem: Get the semaphore’s general information.

sig_sem: Increment the semaphore count by one.

wai_sem: Decrement the semaphore count by one. Blocks the current task if the new value is negative.

twai_sem: Decrement the semaphore count by one. Blocks the current task with timeout if the new value is negative.

pol_sem: Decrement the semaphore count by one. Fails and returns immediately if the new value is negative.

ini_sem: Initialize the semaphore.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.