Enum quicr_core::Event [] [src]

pub enum Event {
    Connected {
        address: SocketAddrV6,
        protocol: Option<Box<[u8]>>,
    },
    ConnectionLost {
        reason: ConnectionError,
    },
    StreamReadable {
        stream: StreamId,
    },
    StreamWritable {
        stream: StreamId,
    },
    StreamFinished {
        stream: StreamId,
    },
    StreamAvailable {
        directionality: Directionality,
    },
}

Events of interest to the application

Variants

A connection was successfully established.

Fields of Connected

A connection was lost.

Fields of ConnectionLost

A stream has data waiting to be read

Fields of StreamReadable

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

Trait Implementations

impl Debug for Event
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Event

impl Sync for Event