Struct semaphore::Guard
[−]
[src]
pub struct Guard<T> { /* fields omitted */ }
An RAII guard used to release a semaphore automatically when it falls out of scope.
Methods
impl<T> Guard<T>
[src]
fn as_unguarded(&self) -> UnguardedRef<T>
[src]
Spawns an unguarded reference to the resource.