pub struct Executor(_);
Expand description
A type implementing hyper::rt::Executor
Implementations
pub fn spawn<Fut>(&self, fut: Fut) -> JoinHandle<Fut::Output>ⓘNotable traits for JoinHandle<T>impl<T> Future for JoinHandle<T> type Output = T;
where
Fut: 'static + Send + Future,
Fut::Output: 'static + Send,
pub fn spawn<Fut>(&self, fut: Fut) -> JoinHandle<Fut::Output>ⓘNotable traits for JoinHandle<T>impl<T> Future for JoinHandle<T> type Output = T;
where
Fut: 'static + Send + Future,
Fut::Output: 'static + Send,
Notable traits for JoinHandle<T>
impl<T> Future for JoinHandle<T> type Output = T;
Spawn a future by app runtime
pub fn spawn_blocking<T, R>(&self, task: T) -> JoinHandle<R>ⓘNotable traits for JoinHandle<T>impl<T> Future for JoinHandle<T> type Output = T;
where
T: 'static + Send + FnOnce() -> R,
R: 'static + Send,
pub fn spawn_blocking<T, R>(&self, task: T) -> JoinHandle<R>ⓘNotable traits for JoinHandle<T>impl<T> Future for JoinHandle<T> type Output = T;
where
T: 'static + Send + FnOnce() -> R,
R: 'static + Send,
Notable traits for JoinHandle<T>
impl<T> Future for JoinHandle<T> type Output = T;
Spawn a blocking task by app runtime
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Executor
impl !UnwindSafe for Executor
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more