pub struct WhateverContext<Fut, S, E> { /* private fields */ }Available on crate feature
futures only.Expand description
Future for the
whatever_context combinator.
See the TryFutureExt::whatever_context method for more
details.
Trait Implementations§
Source§impl<Fut, S, E> Future for WhateverContext<Fut, S, E>
Available on crate features alloc only.
impl<Fut, S, E> Future for WhateverContext<Fut, S, E>
Available on crate features
alloc only.impl<'pin, Fut, S, E> Unpin for WhateverContext<Fut, S, E>where
PinnedFieldsOf<__WhateverContext<'pin, Fut, S, E>>: Unpin,
Auto Trait Implementations§
impl<Fut, S, E> Freeze for WhateverContext<Fut, S, E>
impl<Fut, S, E> RefUnwindSafe for WhateverContext<Fut, S, E>
impl<Fut, S, E> Send for WhateverContext<Fut, S, E>
impl<Fut, S, E> Sync for WhateverContext<Fut, S, E>
impl<Fut, S, E> UnsafeUnpin for WhateverContext<Fut, S, E>where
Fut: UnsafeUnpin,
S: UnsafeUnpin,
impl<Fut, S, E> UnwindSafe for WhateverContext<Fut, S, E>
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
Source§impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture,
impl<Fut> TryFutureExt for Futwhere
Fut: TryFuture,
Source§fn context<C, E>(self, context: C) -> Context<Fut, C, E> ⓘ
fn context<C, E>(self, context: C) -> Context<Fut, C, E> ⓘ
Available on crate feature
futures only.Source§fn with_context<F, C, E>(self, context: F) -> WithContext<Fut, F, E> ⓘ
fn with_context<F, C, E>(self, context: F) -> WithContext<Fut, F, E> ⓘ
Available on crate feature
futures only.Source§fn whatever_context<S, E>(self, context: S) -> WhateverContext<Fut, S, E> ⓘ
fn whatever_context<S, E>(self, context: S) -> WhateverContext<Fut, S, E> ⓘ
Available on crate feature
futures and (crate features alloc) only.Source§fn with_whatever_context<F, S, E>(
self,
context: F,
) -> WithWhateverContext<Fut, F, E> ⓘ
fn with_whatever_context<F, S, E>( self, context: F, ) -> WithWhateverContext<Fut, F, E> ⓘ
Available on crate feature
futures and (crate features alloc) only.