pub struct MaybeFuture<O, F: Future<Output = O>> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<O, F: Future<Output = O>> Future for MaybeFuture<O, F>
impl<O, F: Future<Output = O>> Future for MaybeFuture<O, F>
impl<'__pin, O, F: Future<Output = O>> Unpin for MaybeFuture<O, F>where
PinnedFieldsOf<__Origin<'__pin, O, F>>: Unpin,
Auto Trait Implementations§
impl<O, F> Freeze for MaybeFuture<O, F>where
F: Freeze,
impl<O, F> RefUnwindSafe for MaybeFuture<O, F>where
F: RefUnwindSafe,
impl<O, F> Send for MaybeFuture<O, F>where
F: Send,
impl<O, F> Sync for MaybeFuture<O, F>where
F: Sync,
impl<O, F> UnwindSafe for MaybeFuture<O, F>where
F: UnwindSafe,
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