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
Idle(E)
Wait for arrival of a new message until the timeout expires.
Recv(E)
Receive new message until the timeout expires.
Flush(E)
Flush the write buffer until the timeout expires.
Sleep(E, Duration)
Sleep until the specified the timeout expires.
Close
Close the connection immediately, pending data in the buffers will be discarded.