pub trait BackgroundReadyExecutor<T, Request>: TypedExecutor<BackgroundReady<T, Request>>
where T: Service<Request>, T::Error: Into<Box<dyn Error + Send + Sync>>,
{ }
Expand description

This trait allows you to use either Tokio’s threaded runtime’s executor or the current_thread runtime’s executor depending on if T is Send or !Send.

Implementors§

source§

impl<T, Request, E> BackgroundReadyExecutor<T, Request> for E
where E: TypedExecutor<BackgroundReady<T, Request>>, T: Service<Request>, T::Error: Into<Box<dyn Error + Send + Sync>>,