pub struct Condvar { /* private fields */ }
Implementations
sourceimpl Condvar
impl Condvar
pub fn new() -> Condvar
pub fn wait_impl<T>(
&self,
lock: &Mutex<T>,
dur: Option<Duration>
) -> Result<(), ParkError>
pub fn wait<'a, T>(
&self,
guard: MutexGuard<'a, T>
) -> LockResult<MutexGuard<'a, T>>
pub fn wait_timeout<'a, T>(
&self,
guard: MutexGuard<'a, T>,
dur: Duration
) -> LockResult<(MutexGuard<'a, T>, WaitTimeoutResult)>
pub fn notify_one(&self)
pub fn notify_all(&self)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Condvar
impl Send for Condvar
impl Sync for Condvar
impl Unpin for Condvar
impl UnwindSafe for Condvar
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more