[−][src]Trait futures::task::SpawnExt
Extension trait for Spawn
.
Provided methods
fn spawn<Fut>(&mut self, future: Fut) -> Result<(), SpawnError> where
Fut: Future<Output = ()> + Send + 'static,
[+]
Fut: Future<Output = ()> + Send + 'static,
fn spawn_with_handle<Fut>(
&mut self,
future: Fut
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError> where
Fut: Future + Send + 'static,
<Fut as Future>::Output: Send,
[+]
&mut self,
future: Fut
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError> where
Fut: Future + Send + 'static,
<Fut as Future>::Output: Send,
ⓘImportant traits for Compat<W>fn compat(self) -> Compat<Self>
[+]
ⓘImportant traits for Compat<W>
Implementors
impl<Sp> SpawnExt for Sp where
Sp: Spawn + ?Sized,
[src][−]
Sp: Spawn + ?Sized,
fn spawn<Fut>(&mut self, future: Fut) -> Result<(), SpawnError> where
Fut: Future<Output = ()> + Send + 'static,
[src]
Fut: Future<Output = ()> + Send + 'static,
fn spawn_with_handle<Fut>(
&mut self,
future: Fut
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError> where
Fut: Future + Send + 'static,
<Fut as Future>::Output: Send,
[src]
&mut self,
future: Fut
) -> Result<RemoteHandle<<Fut as Future>::Output>, SpawnError> where
Fut: Future + Send + 'static,
<Fut as Future>::Output: Send,
ⓘImportant traits for Compat<W>fn compat(self) -> Compat<Self>
[src]
ⓘImportant traits for Compat<W>