Trait AsyncExecutor

Source
pub trait AsyncExecutor:
    Sized
    + Send
    + Sync
    + 'static {
    type InputPacket: PoolObjectTrait;
    type OutputPacket: PacketTrait;
    type GlobalParams: Send + Sync + 'static;
    type InitData: Send + Sync + Clone + 'static;

    const ALLOW_PARALLEL_ADDRESS_EXECUTION: bool;

    // Required methods
    fn new() -> Self;
    fn executor_main<'a>(
        &'a mut self,
        global_params: &'a Self::GlobalParams,
        receiver: ExecutorReceiver<Self>,
    );
}

Required Associated Constants§

Required Associated Types§

Required Methods§

Source

fn new() -> Self

Source

fn executor_main<'a>( &'a mut self, global_params: &'a Self::GlobalParams, receiver: ExecutorReceiver<Self>, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§