[][src]Struct futures::sync::BiLockAcquired

pub struct BiLockAcquired<T> { /* fields omitted */ }

Resolved value of the BiLockAcquire<T> future.

This value, like BiLockGuard<T>, is a sentinel to the value T through implementations of Deref and DerefMut. When dropped will unlock the lock, and the original unlocked BiLock<T> can be recovered through the unlock method.

Methods

impl<T> BiLockAcquired<T>[src]

pub fn unlock(self) -> BiLock<T>[src]

Recovers the original BiLock<T>, unlocking this lock.

Trait Implementations

impl<T: Debug> Debug for BiLockAcquired<T>[src]

impl<T> Deref for BiLockAcquired<T>[src]

type Target = T

The resulting type after dereferencing.

impl<T> DerefMut for BiLockAcquired<T>[src]

impl<T> Drop for BiLockAcquired<T>[src]

Auto Trait Implementations

impl<T> Unpin for BiLockAcquired<T>

impl<T> Send for BiLockAcquired<T> where
    T: Send

impl<T> Sync for BiLockAcquired<T> where
    T: Send

impl<T> !UnwindSafe for BiLockAcquired<T>

impl<T> !RefUnwindSafe for BiLockAcquired<T>

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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