Struct async_core::DeferredFuture
source · pub struct DeferredFuture<Args, T, F>where
Args: Send + 'static,
T: Send + 'static,
F: FnOnce(Args) -> T + Send + 'static,{ /* private fields */ }
Expand description
A future that runs a function in a new thread without blocking.
Trait Implementations§
Auto Trait Implementations§
impl<Args, T, F> RefUnwindSafe for DeferredFuture<Args, T, F>where
Args: RefUnwindSafe,
F: RefUnwindSafe,
impl<Args, T, F> Send for DeferredFuture<Args, T, F>
impl<Args, T, F> !Sync for DeferredFuture<Args, T, F>
impl<Args, T, F> Unpin for DeferredFuture<Args, T, F>where
Args: Unpin,
F: Unpin,
impl<Args, T, F> UnwindSafe for DeferredFuture<Args, T, F>where
Args: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
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