[][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: Debug> Debug for Locked<'a, T>[src]

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

type Target = T

The resulting type after dereferencing.

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

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

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

impl<'a, T> Unpin for Locked<'a, T>

Blanket Implementations

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

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

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

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

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.