pub struct InitAndWait<'wait_list, L: Lock, I, O, OnCancel>where
OnCancel: CancelCallback<'wait_list, L, I, O>,{ /* private fields */ }
Expand description
A future that both initializes and waits on a WaitList
, created by
LockedExclusive::init_and_wait
.
Trait Implementations§
Source§impl<'wait_list, L, I, O, OnCancel> Debug for InitAndWait<'wait_list, L, I, O, OnCancel>where
OnCancel: CancelCallback<'wait_list, L, I, O>,
<L as Lifetime<'wait_list>>::ExclusiveGuard: Debug,
I: Debug,
L: Debug + Lock,
impl<'wait_list, L, I, O, OnCancel> Debug for InitAndWait<'wait_list, L, I, O, OnCancel>where
OnCancel: CancelCallback<'wait_list, L, I, O>,
<L as Lifetime<'wait_list>>::ExclusiveGuard: Debug,
I: Debug,
L: Debug + Lock,
Source§impl<'wait_list, L: Lock, I, O, OnCancel> Future for InitAndWait<'wait_list, L, I, O, OnCancel>where
OnCancel: CancelCallback<'wait_list, L, I, O>,
impl<'wait_list, L: Lock, I, O, OnCancel> Future for InitAndWait<'wait_list, L, I, O, OnCancel>where
OnCancel: CancelCallback<'wait_list, L, I, O>,
Source§type Output = (LockedExclusive<'wait_list, L, I, O>, O)
type Output = (LockedExclusive<'wait_list, L, I, O>, O)
The type of value produced on completion.
impl<'__pin, 'wait_list, L: Lock, I, O, OnCancel> Unpin for InitAndWait<'wait_list, L, I, O, OnCancel>where
PinnedFieldsOf<__Origin<'__pin, 'wait_list, L, I, O, OnCancel>>: Unpin,
OnCancel: CancelCallback<'wait_list, L, I, O>,
Auto Trait Implementations§
impl<'wait_list, L, I, O, OnCancel> !Freeze for InitAndWait<'wait_list, L, I, O, OnCancel>
impl<'wait_list, L, I, O, OnCancel> !RefUnwindSafe for InitAndWait<'wait_list, L, I, O, OnCancel>
impl<'wait_list, L, I, O, OnCancel> Send for InitAndWait<'wait_list, L, I, O, OnCancel>
impl<'wait_list, L, I, O, OnCancel> Sync for InitAndWait<'wait_list, L, I, O, OnCancel>
impl<'wait_list, L, I, O, OnCancel> !UnwindSafe for InitAndWait<'wait_list, L, I, O, OnCancel>
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
Source§impl<F> IntoFuture for Fwhere
F: Future,
impl<F> IntoFuture for Fwhere
F: Future,
Source§type IntoFuture = F
type IntoFuture = F
Which kind of future are we turning this into?
Source§fn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
Creates a future from a value. Read more