Enum rotor_stream::Accept [] [src]

pub enum Accept<M, A: TryAccept + Sized> where
    A::Output: StreamSocket,
    M: Accepted<Socket = A::Output>, 
{ Server(A, <M as Accepted>::Seed), Connection(M), }

Socket acceptor State Machine

TODO(tailhook) Currently this panics when there is no slab space when accepting a connection. This may be fixed by sleeping and retrying

Variants

Methods

impl<M, A> Accept<M, A> where
    A: TryAccept<Output = M::Socket> + Evented + Any,
    M: Accepted
[src]

Trait Implementations

impl<M, A> Machine for Accept<M, A> where
    A: TryAccept<Output = M::Socket> + Evented + Any,
    M: Accepted
[src]

Context type for the state machine Read more

Seed is piece of data that is needed to initialize the machine Read more

Create a machine from some data Read more

Socket readiness notification

Called after spawn event Read more

Timeout happened

Message received Read more

Called instead of spawned, if there is no slab space Read more