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]

[src]

Spawns an unguarded reference to the resource.

Trait Implementations

impl<T> Drop for Guard<T>
[src]

[src]

Executes the destructor for this type. Read more

impl<T: Sized> Deref for Guard<T>
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.