LockArcInnards

Enum LockArcInnards 

Source
enum LockArcInnards<T: ?Sized> {
    Unpolled {
        mutex: Option<Arc<Mutex<T>>>,
    },
    AcquireSlow {
        inner: AcquireSlow<Arc<Mutex<T>>, T>,
    },
}

Variants§

§

Unpolled

We have not tried to poll the fast path yet.

Fields

§mutex: Option<Arc<Mutex<T>>>
§

AcquireSlow

We are acquiring the mutex through the slow path.

Fields

§inner: AcquireSlow<Arc<Mutex<T>>, T>

Trait Implementations§

Source§

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

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<T: ?Sized> EventListenerFuture for LockArcInnards<T>

Source§

type Output = MutexGuardArc<T>

The type of value produced on completion.
Source§

fn poll_with_strategy<'a, S: Strategy<'a>>( self: Pin<&mut Self>, strategy: &mut S, context: &mut S::Context, ) -> Poll<Self::Output>

Poll the future using the provided strategy. Read more
Source§

fn wait(self) -> Self::Output
where Self: Sized,

Wait for the future to complete, blocking the current thread. Read more
Source§

impl<'__pin, T: ?Sized> Unpin for LockArcInnards<T>
where PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,

Auto Trait Implementations§

§

impl<T> Freeze for LockArcInnards<T>
where T: ?Sized,

§

impl<T> !RefUnwindSafe for LockArcInnards<T>

§

impl<T> Send for LockArcInnards<T>
where T: Send + ?Sized,

§

impl<T> Sync for LockArcInnards<T>
where T: Sync + Send + ?Sized,

§

impl<T> !UnwindSafe for LockArcInnards<T>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.