[][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]

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

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.

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]

Performs the conversion.

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

Performs the conversion.

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

Immutably borrows from an owned value. Read more

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

Mutably borrows from an owned value. Read more

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

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

The type returned in the event of a conversion error.

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

Performs the conversion.

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

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

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more