Struct mai::ProtocolEngineBuilder
[−]
[src]
pub struct ProtocolEngineBuilder<P: ?Sized> where
P: Protocol, { pub handler: P::Handler, pub event_loop: MioEventLoop<ProtocolEngine<P>>, pub starting_buffer_size: Bytes, pub buffer_pool_size: usize, pub max_buffer_pool_size: usize, }
Fields
handler: P::Handler
event_loop: MioEventLoop<ProtocolEngine<P>>
starting_buffer_size: Bytes
buffer_pool_size: usize
max_buffer_pool_size: usize
Methods
impl<P: ?Sized> ProtocolEngineBuilder<P> where
P: Protocol + 'static,
[src]
P: Protocol + 'static,
fn with<T>(self, option_setter: T) -> ProtocolEngineBuilder<P> where
T: OptionSetter<ProtocolEngineBuilder<P>>,
T: OptionSetter<ProtocolEngineBuilder<P>>,