Struct sync::Guard[][src]

pub struct Guard<'a, T: ?Sized + 'a, Lock: 'a + Lock> { /* fields omitted */ }

Reference to guarded value

Trait Implementations

impl<'a, T: ?Sized, Lock: Lock> Deref for Guard<'a, T, Lock>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<'a, T: ?Sized, Lock: Lock> Drop for Guard<'a, T, Lock>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<'a, T: ?Sized, Lock> Send for Guard<'a, T, Lock> where
    Lock: Sync,
    T: Sync

impl<'a, T: ?Sized, Lock> Sync for Guard<'a, T, Lock> where
    Lock: Sync,
    T: Sync