Struct maybe_future::MaybeFuture
source · 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 __Origin<'__pin, O, F>: Unpin,
Auto Trait Implementations§
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,
§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