pub trait TaskExecutor {
// Required methods
fn poll_and_work<'life0, 'life1, 'async_trait>(
&'life0 self,
worker: &'life1 (dyn ConductorWorker + Send + Sync),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn start(&self) -> Result<(), Error>;
fn start_in_thread(
self: Arc<Self>,
stop_tx: Receiver<()>,
) -> Result<(), Box<dyn Error>>;
}Required Methods§
fn poll_and_work<'life0, 'life1, 'async_trait>(
&'life0 self,
worker: &'life1 (dyn ConductorWorker + Send + Sync),
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start(&self) -> Result<(), Error>
fn start_in_thread( self: Arc<Self>, stop_tx: Receiver<()>, ) -> Result<(), Box<dyn Error>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".