IoEngineConfig

Trait IoEngineConfig 

Source
pub trait IoEngineConfig:
    Send
    + Sync
    + 'static
    + Debug {
    // Required method
    fn build(
        self: Box<Self>,
        ctx: IoEngineBuildContext,
    ) -> BoxFuture<'static, Result<Arc<dyn IoEngine>>>;

    // Provided method
    fn boxed(self) -> Box<Self>
       where Self: Sized { ... }
}
Expand description

I/O engine config trait.

Required Methods§

Source

fn build( self: Box<Self>, ctx: IoEngineBuildContext, ) -> BoxFuture<'static, Result<Arc<dyn IoEngine>>>

Build an I/O engine from the given configuration.

Provided Methods§

Source

fn boxed(self) -> Box<Self>
where Self: Sized,

Box the config.

Trait Implementations§

Source§

impl From<PsyncIoEngineConfig> for Box<dyn IoEngineConfig>

Source§

fn from(builder: PsyncIoEngineConfig) -> Self

Converts to this type from the input type.

Implementors§