Struct try_lock::Locked[][src]

pub struct Locked<'a, T: 'a> { /* fields omitted */ }

A locked value acquired from a TryLock.

The type represents an exclusive view at the underlying value. The lock is released when this type is dropped.

This type derefs to the underlying value.

Trait Implementations

impl<'a, T> Deref for Locked<'a, T>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<'a, T> DerefMut for Locked<'a, T>
[src]

Mutably dereferences the value.

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

Executes the destructor for this type. Read more

impl<'a, T: Debug> Debug for Locked<'a, T>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a, T> Send for Locked<'a, T> where
    T: Send

impl<'a, T> Sync for Locked<'a, T> where
    T: Send