Struct MutexLockFuture

pub struct MutexLockFuture<'a, T: ?Sized> { /* private fields */ }

A future which resolves when the target mutex has been successfully acquired.

Trait Implementations

impl<'a, T: ?Sized> Future for MutexLockFuture<'a, T>

type Output = MutexGuard<'a, T>;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

impl<T: ?Sized + Send> Send for MutexLockFuture<'_, T>

impl<T: ?Sized> Debug for MutexLockFuture<'_, T>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<T: ?Sized> Drop for MutexLockFuture<'_, T>

fn drop(&mut self)

impl<T: ?Sized> FusedFuture for MutexLockFuture<'_, T>

fn is_terminated(&self) -> bool

impl<T: ?Sized> Sync for MutexLockFuture<'_, T>

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for MutexLockFuture<'a, T>

impl<'a, T> !UnwindSafe for MutexLockFuture<'a, T>

impl<'a, T> Freeze for MutexLockFuture<'a, T> where Option<&'a Mutex<T>>: Freeze, T: ?Sized,

impl<'a, T> Unpin for MutexLockFuture<'a, T> where Option<&'a Mutex<T>>: Unpin, T: ?Sized,

impl<'a, T> UnsafeUnpin for MutexLockFuture<'a, T> where Option<&'a Mutex<T>>: UnsafeUnpin, T: ?Sized,

Blanket Implementations

impl<F> IntoFuture for MutexLockFuture<'a, T> where F: Future,

type Output = <F as Future>::Output;
type IntoFuture = F;
fn into_future(self) -> <F as IntoFuture>::IntoFuture

impl<T> Any for MutexLockFuture<'a, T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for MutexLockFuture<'a, T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for MutexLockFuture<'a, T> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for MutexLockFuture<'a, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for MutexLockFuture<'a, T> where T: Future + ?Sized,

impl<T, U> Into<U> for MutexLockFuture<'a, T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for MutexLockFuture<'a, T> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for MutexLockFuture<'a, T> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>