Struct wait_list::InitAndWait
source · [−]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
sourceimpl<'wait_list, L: Lock, 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,
impl<'wait_list, L: Lock, 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,
sourceimpl<'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>,
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
__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> !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> where
I: Send + Sync,
L: Sync,
O: Send,
OnCancel: Send,
<L as Lifetime<'wait_list, Bounds<&'wait_list L>>>::ExclusiveGuard: Send,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<F> IntoFuture for F where
F: Future,
impl<F> IntoFuture for F where
F: Future,
type Output = <F as Future>::Output
type Output = <F as Future>::Output
🔬 This is a nightly-only experimental API. (
into_future)The output that the future will produce on completion.
type IntoFuture = F
type IntoFuture = F
🔬 This is a nightly-only experimental API. (
into_future)Which kind of future are we turning this into?
sourcefn into_future(self) -> <F as IntoFuture>::IntoFuture
fn into_future(self) -> <F as IntoFuture>::IntoFuture
🔬 This is a nightly-only experimental API. (
into_future)Creates a future from a value.