Type Alias s2n_quic_core::frame::stream::StreamRef

source ·
pub type StreamRef<'a> = Stream<&'a [u8]>;

Aliased Type§

struct StreamRef<'a> {
    pub stream_id: VarInt,
    pub offset: VarInt,
    pub is_last_frame: bool,
    pub is_fin: bool,
    pub data: &'a [u8],
}

Fields§

§stream_id: VarInt

A variable-length integer indicating the stream ID of the stream

§offset: VarInt

A variable-length integer specifying the byte offset in the stream for the data in this STREAM frame.

§is_last_frame: bool

If true, the frame is the last frame in the payload

§is_fin: bool

If true, the frame marks the end of the stream.

§data: &'a [u8]

The bytes from the designated stream to be delivered.

Trait Implementations§

source§

impl<'a> From<Stream<DecoderBuffer<'a>>> for StreamRef<'a>

source§

fn from(s: Stream<DecoderBuffer<'a>>) -> Self

Converts to this type from the input type.
source§

impl<'a> From<Stream<DecoderBufferMut<'a>>> for StreamRef<'a>

source§

fn from(s: Stream<DecoderBufferMut<'a>>) -> Self

Converts to this type from the input type.