Struct embedded_svc::utils::mutex::Condvar
source · pub struct Condvar<V>(/* private fields */);Implementations§
source§impl<V> Condvar<V>where
V: RawCondvar,
impl<V> Condvar<V>where
V: RawCondvar,
pub fn new() -> Self
pub const fn wrap(raw_condvar: V) -> Self
pub fn wait<'a, T>( &self, guard: MutexGuard<'a, V::RawMutex, T> ) -> MutexGuard<'a, V::RawMutex, T>
pub fn wait_timeout<'a, T>( &self, guard: MutexGuard<'a, V::RawMutex, T>, duration: Duration ) -> (MutexGuard<'a, V::RawMutex, T>, bool)
pub fn notify_one(&self)
pub fn notify_all(&self)
Trait Implementations§
source§impl<V> Default for Condvar<V>where
V: RawCondvar,
impl<V> Default for Condvar<V>where
V: RawCondvar,
impl<V> Send for Condvar<V>
impl<V> Sync for Condvar<V>
Auto Trait Implementations§
impl<V> RefUnwindSafe for Condvar<V>where
V: RefUnwindSafe,
impl<V> Unpin for Condvar<V>where
V: Unpin,
impl<V> UnwindSafe for Condvar<V>where
V: UnwindSafe,
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