pub struct Condvar { /* private fields */ }
Expand description
A condition variable that integrates with [fuchsia_sync::Mutex
].
Implementations§
Source§impl Condvar
impl Condvar
pub const fn new() -> Self
pub fn notify_one(&self)
pub fn notify_all(&self)
pub fn wait<T: ?Sized>(&self, guard: &mut MutexGuard<'_, T>)
pub fn wait_while<'a, T: ?Sized, F>( &self, guard: &mut MutexGuard<'a, T>, condition: F, )
pub fn wait_for<T: ?Sized>( &self, guard: &mut MutexGuard<'_, T>, timeout: Duration, ) -> WaitTimeoutResult
pub fn wait_while_for<'a, T: ?Sized, F>( &self, guard: &mut MutexGuard<'a, T>, condition: F, timeout: Duration, ) -> WaitTimeoutResult
Auto Trait Implementations§
impl !Freeze for Condvar
impl RefUnwindSafe for Condvar
impl Send for Condvar
impl Sync for Condvar
impl Unpin for Condvar
impl UnwindSafe for Condvar
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more