Trait rust_box::task_exec_queue::SpawnExt
source · [−]pub trait SpawnExt: Future {
fn spawn<Tx, G>(
self,
queue: &TaskExecQueue<Tx, G, ()>
) -> Spawner<'_, Self, Tx, G, ()>ⓘ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,
Tx: 'static + Clone + Unpin + Sink<((), Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)> + Send + Sync,
G: 'static + Hash + Eq + Clone + Debug + Send + Sync,
{ ... }
fn spawn_with<Tx, G, D>(
self,
queue: &TaskExecQueue<Tx, G, D>,
name: D
) -> Spawner<'_, Self, Tx, G, D>ⓘ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,
Tx: 'static + Clone + Unpin + Sink<(D, Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)> + Send + Sync,
G: 'static + Hash + Eq + Clone + Debug + Send + Sync,
{ ... }
}Provided Methods
fn spawn<Tx, G>(
self,
queue: &TaskExecQueue<Tx, G, ()>
) -> Spawner<'_, Self, Tx, G, ()>ⓘ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,
Tx: 'static + Clone + Unpin + Sink<((), Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)> + Send + Sync,
G: 'static + Hash + Eq + Clone + Debug + Send + Sync,
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>>;
fn spawn_with<Tx, G, D>(
self,
queue: &TaskExecQueue<Tx, G, D>,
name: D
) -> Spawner<'_, Self, Tx, G, D>ⓘ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,
Tx: 'static + Clone + Unpin + Sink<(D, Box<dyn Future<Output = ()> + Unpin + Send + 'static, Global>)> + Send + Sync,
G: 'static + Hash + Eq + Clone + Debug + Send + Sync,
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>>;