pub struct SemaphoreReleaser<'a, S: Semaphore> { }
Expand description
A representation of a number of acquired permits.
The acquired permits will be released back to the Semaphore
when this is dropped.
The number of acquired permits.
Prevent the acquired permits from being released on drop.
Returns the number of acquired permits.
Executes the destructor for this type.
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.