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