Enum cold_io::ProposalKind [−][src]
pub enum ProposalKind<R, W, Ext> {
Wake,
Idle,
Connection {
addr: SocketAddr,
incoming: bool,
id: ConnectionId,
},
OnReadable(ConnectionId, R),
OnWritable(ConnectionId, W),
Custom(Ext),
}
Variants
Wake the state machine, useful if the state machine needs to request something before it receives any event
Nothing happened during a time quant
New connection
Fields of Connection
The remote peer can provide data.
Tuple Fields of OnReadable
0: ConnectionId
1: R
The remote peer can accept data.
Tuple Fields of OnWritable
0: ConnectionId
1: W
User-defined