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
Wake the state machine, useful if the state machine needs to request something before it receives any event
Idle
Nothing happened during a time quant
Connection
New connection
OnReadable(ConnectionId, R)
The remote peer can provide data.
OnWritable(ConnectionId, W)
The remote peer can accept data.
Custom(Ext)
User-defined
Trait Implementations§
Auto Trait Implementations§
impl<R, W, Ext> Freeze for ProposalKind<R, W, Ext>
impl<R, W, Ext> RefUnwindSafe for ProposalKind<R, W, Ext>
impl<R, W, Ext> Send for ProposalKind<R, W, Ext>
impl<R, W, Ext> Sync for ProposalKind<R, W, Ext>
impl<R, W, Ext> Unpin for ProposalKind<R, W, Ext>
impl<R, W, Ext> UnwindSafe for ProposalKind<R, W, Ext>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more