Enum quicr_core::Event [−][src]
pub enum Event {
Connected {
protocol: Option<Box<[u8]>>,
},
ConnectionLost {
reason: ConnectionError,
},
ConnectionDrained,
StreamReadable {
stream: StreamId,
fresh: bool,
},
StreamWritable {
stream: StreamId,
},
StreamFinished {
stream: StreamId,
},
StreamAvailable {
directionality: Directionality,
},
NewSessionTicket {
ticket: Box<[u8]>,
},
}Events of interest to the application
Variants
ConnectedA connection was successfully established.
Fields of Connected
protocol: Option<Box<[u8]>> |
ConnectionLostA connection was lost.
Fields of ConnectionLost
reason: ConnectionError |
ConnectionDrainedA closed connection was dropped.
StreamReadableA stream has data or errors waiting to be read
Fields of StreamReadable
stream: StreamId | The affected stream |
fresh: bool | Whether this is the first event on the stream |
StreamWritableA formerly write-blocked stream might now accept a write
Fields of StreamWritable
stream: StreamId |
StreamFinishedAll data sent on stream has been received by the peer
Fields of StreamFinished
stream: StreamId |
StreamAvailableAt least one new stream of a certain directionality may be opened
Fields of StreamAvailable
directionality: Directionality |
NewSessionTicketFields of NewSessionTicket
ticket: Box<[u8]> |