Struct glommio::sync::Permit [−][src]
#[must_use = "units are only held while the permit is alive. If unused then semaphore will \ immediately release units"]pub struct Permit<'a> { /* fields omitted */ }
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> !RefUnwindSafe for Permit<'a>
impl<'a> !UnwindSafe for Permit<'a>
impl<'a> !UnwindSafe for Permit<'a>