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

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.

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.