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

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

Fields of Connection

addr: SocketAddrincoming: boolid: ConnectionId
OnReadable

The remote peer can provide data.

Tuple Fields of OnReadable

0: ConnectionId1: R
OnWritable

The remote peer can accept data.

Tuple Fields of OnWritable

0: ConnectionId1: W
Custom

User-defined

Tuple Fields of Custom

0: Ext

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.