Struct OwnedMutexLockFuture

pub struct OwnedMutexLockFuture<T: ?Sized> { /* private fields */ }

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

Trait Implementations

impl<T: ?Sized + Send> Send for OwnedMutexLockFuture<T>

impl<T: ?Sized> Debug for OwnedMutexLockFuture<T>

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

impl<T: ?Sized> Drop for OwnedMutexLockFuture<T>

fn drop(&mut self)

impl<T: ?Sized> FusedFuture for OwnedMutexLockFuture<T>

fn is_terminated(&self) -> bool

impl<T: ?Sized> Future for OwnedMutexLockFuture<T>

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

impl<T: ?Sized> Sync for OwnedMutexLockFuture<T>

Auto Trait Implementations

impl<T> !RefUnwindSafe for OwnedMutexLockFuture<T>

impl<T> !UnwindSafe for OwnedMutexLockFuture<T>

impl<T> Freeze for OwnedMutexLockFuture<T> where Option<Arc<Mutex<T>>>: Freeze, T: ?Sized,

impl<T> Unpin for OwnedMutexLockFuture<T> where Option<Arc<Mutex<T>>>: Unpin, T: ?Sized,

impl<T> UnsafeUnpin for OwnedMutexLockFuture<T> where Option<Arc<Mutex<T>>>: UnsafeUnpin, T: ?Sized,

Blanket Implementations

impl<F> IntoFuture for OwnedMutexLockFuture<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 OwnedMutexLockFuture<T> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for OwnedMutexLockFuture<T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for OwnedMutexLockFuture<T> where T: ?Sized,

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

impl<T> From<T> for OwnedMutexLockFuture<T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> FutureExt for OwnedMutexLockFuture<T> where T: Future + ?Sized,

impl<T, U> Into<U> for OwnedMutexLockFuture<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 OwnedMutexLockFuture<T> where U: Into<T>,

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

impl<T, U> TryInto<U> for OwnedMutexLockFuture<T> where U: TryFrom<T>,

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