StreamUniLocalQuic

Type Alias StreamUniLocalQuic 

Source
pub type StreamUniLocalQuic = Stream<UniLocal, Quic>;
Expand description

QUIC unidirectional remote stream.

Aliased Type§

pub struct StreamUniLocalQuic { /* private fields */ }

Implementations§

Source§

impl StreamUniLocalQuic

Source

pub fn open_uni() -> Self

Creates a new locally-initialized unidirectional stream.

Source

pub fn upgrade<W>( self, stream_header: StreamHeader, bytes_writer: &mut W, ) -> StreamUniLocalH3
where W: BytesWriter,

Upgrades to an HTTP3 stream.

§Panics

Panics if bytes_writer does not have enough capacity to write the stream_header. Check it with Self::upgrade_size.

Source

pub async fn upgrade_async<W>( self, stream_header: StreamHeader, writer: &mut W, ) -> Result<StreamUniLocalH3, IoWriteError>
where W: AsyncWrite + Unpin + ?Sized,

Upgrades to an HTTP3 stream.

Source

pub fn upgrade_size(stream_header: StreamHeader) -> usize

Returns the buffer capacity needed for Self::upgrade.