pub trait Executor<X>: Send + Sync {
// Required methods
fn context<'async_trait>( ) -> Pin<Box<dyn Future<Output = Result<Self, SpawnError>> + Send + 'async_trait>>
where Self: Sized + 'async_trait;
fn set_context<'life0, 'async_trait>(
&'life0 mut self,
executor: X,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn enter_context<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_executor<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = &X> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn context_sync() -> Result<Self, SpawnError>
where Self: Sized;
fn set_context_sync(&mut self, executor: X);
fn enter_context_sync(&self);
fn get_executor_sync(&self) -> &X;
}