Trait rust_box::task_executor::SpawnDefaultExt
source · [−]pub trait SpawnDefaultExt: Future {
fn spawn(self) -> Spawner<'static, Self>ⓘNotable traits for Spawner<'_, Item>impl<Item> Future for Spawner<'_, Item>where
Item: 'static + Future + Send,
<Item as Future>::Output: 'static,
<Item as Future>::Output: Send, type Output = Result<(), Error<Item>>;
where
Self: 'static + Send,
Self::Output: 'static,
Self::Output: Send,
{ ... }
}Provided Methods
sourcefn spawn(self) -> Spawner<'static, Self>ⓘNotable traits for Spawner<'_, Item>
fn spawn(self) -> Spawner<'static, Self>ⓘNotable traits for Spawner<'_, Item>impl<Item> Future for Spawner<'_, Item>where
Item: 'static + Future + Send,
<Item as Future>::Output: 'static,
<Item as Future>::Output: Send, type Output = Result<(), Error<Item>>;where
Self: 'static + Send,
Self::Output: 'static,
Self::Output: Send,
Item: 'static + Future + Send,
<Item as Future>::Output: 'static,
<Item as Future>::Output: Send, type Output = Result<(), Error<Item>>;