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

A connection was successfully established.

Fields of Connected

A connection was lost.

Fields of ConnectionLost

A closed connection was dropped.

A stream has data or errors waiting to be read

Fields of StreamReadable

The affected stream

Whether this is the first event on the stream

A formerly write-blocked stream might now accept a write

Fields of StreamWritable

All data sent on stream has been received by the peer

Fields of StreamFinished

At least one new stream of a certain directionality may be opened

Fields of StreamAvailable

Fields of NewSessionTicket

Trait Implementations

impl Debug for Event
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Event

impl Sync for Event