Trait rust_box::task_exec_queue::SpawnDefaultExt
source · [−]pub trait SpawnDefaultExt: Future {
fn spawn(
self
) -> Spawner<'static, Self, Sender<((), Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)>, (), ()>ⓘNotable traits for Spawner<'_, Item, Tx, G, D>impl<Item, Tx, G, D> Future for Spawner<'_, Item, Tx, G, D>where
Item: 'static + Future + Send,
<Item as Future>::Output: 'static + Send,
Tx: 'static + Clone + Unpin + Sink<(D, Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)> + Send + Sync,
G: 'static + Hash + Eq + Clone + Debug + Send + Sync, type Output = Result<(), Error<Item>>;
where
Self: 'static + Send,
Self::Output: 'static + Send,
{ ... }
}Provided Methods
fn spawn(
self
) -> Spawner<'static, Self, Sender<((), Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)>, (), ()>ⓘNotable traits for Spawner<'_, Item, Tx, G, D>impl<Item, Tx, G, D> Future for Spawner<'_, Item, Tx, G, D>where
Item: 'static + Future + Send,
<Item as Future>::Output: 'static + Send,
Tx: 'static + Clone + Unpin + Sink<(D, Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)> + Send + Sync,
G: 'static + Hash + Eq + Clone + Debug + Send + Sync, type Output = Result<(), Error<Item>>;where
Self: 'static + Send,
Self::Output: 'static + Send,
Item: 'static + Future + Send,
<Item as Future>::Output: 'static + Send,
Tx: 'static + Clone + Unpin + Sink<(D, Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)> + Send + Sync,
G: 'static + Hash + Eq + Clone + Debug + Send + Sync, type Output = Result<(), Error<Item>>;