Struct synchronoise::event::CountdownGuard
source · [−]pub struct CountdownGuard<'a> { /* private fields */ }
Expand description
An opaque guard struct that decrements the count of a borrowed CountdownEvent
on drop.
See CountdownEvent::guard
for more information about this struct.
Trait Implementations
sourceimpl<'a> Drop for CountdownGuard<'a>
impl<'a> Drop for CountdownGuard<'a>
Upon drop, this guard will decrement the counter of its parent CountdownEvent
. If this would
cause an error (see CountdownEvent::signal
for details), the error is silently ignored.
Auto Trait Implementations
impl<'a> RefUnwindSafe for CountdownGuard<'a>
impl<'a> Send for CountdownGuard<'a>
impl<'a> Sync for CountdownGuard<'a>
impl<'a> Unpin for CountdownGuard<'a>
impl<'a> UnwindSafe for CountdownGuard<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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