Struct mai::Context
[−]
[src]
pub struct Context<'a, P: ?Sized> where
P: 'a + Protocol, { /* fields omitted */ }
Methods
impl<'a, P: ?Sized> Context<'a, P> where
P: 'a + Protocol,
[src]
P: 'a + Protocol,
fn new(
event_loop: &'a mut EventLoop<ProtocolEngine<P>>,
efs: &'a mut EventedFrameStream<P>,
session: &'a mut P::Session,
outbox_pool: &'a mut Pool<Outbox<P::Frame>>,
command_sender: &'a mut MioSender<Command<P>>,
token: Token
) -> Context<'a, P>
event_loop: &'a mut EventLoop<ProtocolEngine<P>>,
efs: &'a mut EventedFrameStream<P>,
session: &'a mut P::Session,
outbox_pool: &'a mut Pool<Outbox<P::Frame>>,
command_sender: &'a mut MioSender<Command<P>>,
token: Token
) -> Context<'a, P>