Struct glommio::sync::StaticPermit [−][src]
pub struct StaticPermit { /* fields omitted */ }
Expand description
The static permit is A RAII-friendly way to acquire semaphore resources in long-lived operations that require a static lifetime.
Resources are held while the Permit is alive, and released when the permit is dropped.
Implementations
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for StaticPermit
impl !Send for StaticPermit
impl !Sync for StaticPermit
impl Unpin for StaticPermit
impl !UnwindSafe for StaticPermit
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