[][src]Struct try_lock::Locked

#[must_use = "TryLock will immediately unlock if not used"]
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> Drop for Locked<'a, T>[src][+]

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

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

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

type Target = T

The resulting type after dereferencing.

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

Blanket Implementations

impl<T> From for T[src][]

impl<T, U> Into for T where
    U: From<T>, 
[src][]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src][]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src][]

impl<T> BorrowMut for T where
    T: ?Sized
[src][]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src][]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src][]