[−][src]Struct os_sync::Sem
POSIX implementation of Semaphore
Note: wait_timeout
returns false on interrupt by signal
Trait Implementations
impl Drop for Sem
[src]
impl Semaphore for Sem
[src]
fn new(init: u32) -> Option<Self>
[src]
fn wait(&self)
[src]
fn try_wait(&self) -> bool
[src]
fn wait_timeout(&self, timeout: Duration) -> bool
[src]
fn signal(&self)
[src]
fn post(&self) -> bool
[src]
fn lock(&self) -> SemaphoreGuard<Self>
[src]
fn try_lock(&self) -> Option<SemaphoreGuard<Self>>
[src]
impl Send for Sem
[src]
impl Sync for Sem
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,