Struct glommio::sync::Permit [−][src]
pub struct Permit<'a> { /* fields omitted */ }
Expand description
The permit is A RAII-friendly way to acquire semaphore resources.
Resources are held while the Permit is alive, and released when the permit is dropped.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Permit<'a>
impl<'a> !UnwindSafe for Permit<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more