Enum rotor_capnp::Action [] [src]

pub enum Action<E: Endpoint> {
    Idle(E),
    Recv(E),
    Flush(E),
    Sleep(E, Duration),
    Close,
}

Wrapper of the new state of Endpoint and the next action.

Variants

Wait for arrival of a new message until the timeout expires.

Receive new message until the timeout expires.

Flush the write buffer until the timeout expires.

Sleep until the specified the timeout expires.

Close the connection immediately, pending data in the buffers will be discarded.