Enum quinn_proto::StreamEvent[][src]

pub enum StreamEvent {
    Opened {
        dir: Dir,
    },
    Readable {
        id: StreamId,
    },
    Writable {
        id: StreamId,
    },
    Finished {
        id: StreamId,
    },
    Stopped {
        id: StreamId,
        error_code: VarInt,
    },
    Available {
        dir: Dir,
    },
}

Application events about streams

Variants

Opened

One or more new streams has been opened

Show fields

Fields of Opened

dir: Dir

Directionality for which streams have been opened

Readable

A currently open stream has data or errors waiting to be read

Show fields

Fields of Readable

id: StreamId

Which stream is now readable

Writable

A formerly write-blocked stream might be ready for a write or have been stopped

Only generated for streams that are currently open.

Show fields

Fields of Writable

id: StreamId

Which stream is now writable

Finished

A finished stream has been fully acknowledged or stopped

Show fields

Fields of Finished

id: StreamId

Which stream has been finished

Stopped

The peer asked us to stop sending on an outgoing stream

Show fields

Fields of Stopped

id: StreamId

Which stream has been stopped

error_code: VarInt

Error code supplied by the peer

Available

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

Show fields

Fields of Available

dir: Dir

Directionality for which streams are newly available

Trait Implementations

impl Debug for StreamEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,