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§
Source§impl<'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> Freeze for CountdownGuard<'a>
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§
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
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes