struct AcquireSlow<B: Borrow<Mutex<T>>, T: ?Sized> {
mutex: Option<B>,
listener: Option<EventListener>,
start: Start,
starved: bool,
_marker: PhantomData<T>,
_pin: PhantomPinned,
}Expand description
Future for acquiring the mutex slowly.
Fields§
§mutex: Option<B>§listener: Option<EventListener>§start: Start§starved: bool§_marker: PhantomData<T>§_pin: PhantomPinnedImplementations§
Trait Implementations§
Source§impl<T: ?Sized, B: Unpin + Borrow<Mutex<T>>> EventListenerFuture for AcquireSlow<B, T>
impl<T: ?Sized, B: Unpin + Borrow<Mutex<T>>> EventListenerFuture for AcquireSlow<B, T>
impl<'__pin, B: Borrow<Mutex<T>>, T: ?Sized> Unpin for AcquireSlow<B, T>where
PinnedFieldsOf<__Origin<'__pin, B, T>>: Unpin,
Auto Trait Implementations§
impl<B, T> Freeze for AcquireSlow<B, T>
impl<B, T> RefUnwindSafe for AcquireSlow<B, T>
impl<B, T> Send for AcquireSlow<B, T>
impl<B, T> Sync for AcquireSlow<B, T>
impl<B, T> UnwindSafe for AcquireSlow<B, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more