[go: up one dir, main page]

Struct oncemutex::OnceMutexGuard [] [src]

pub struct OnceMutexGuard<'a, T: 'a> {
    // some fields omitted
}

A guard providing a one-time lock on a OnceMutex.

Trait Implementations

impl<'a, T: Send + Sync> DerefMut for OnceMutexGuard<'a, T>
[src]

fn deref_mut(&mut self) -> &mut T

The method called to mutably dereference a value

impl<'a, T: Send + Sync> Deref for OnceMutexGuard<'a, T>
[src]

type Target = T

The resulting type after dereferencing

fn deref(&self) -> &T

The method called to dereference a value

impl<'a, T> Drop for OnceMutexGuard<'a, T>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more