async_unsync::semaphoreStruct Permit
Source pub struct Permit<'a> { }
Expand description
A permit representing access to the Semaphore
’s guarded resource.
Drops the permit without returning it to the Semaphore
.
This permanently reduces the number of available permits.
Formats the value using the given formatter.
Read more
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.