StreamUniRemoteQuic

Type Alias StreamUniRemoteQuic 

Source
pub type StreamUniRemoteQuic = Stream<UniRemote, Quic>;
Expand description

QUIC unidirectional remote stream.

Aliased Type§

pub struct StreamUniRemoteQuic { /* private fields */ }

Implementations§

Source§

impl StreamUniRemoteQuic

Source

pub fn accept_uni() -> Self

Creates a new remote-initialized unidirectional stream.

Source

pub fn upgrade<'a, R>( self, bytes_reader: &mut R, ) -> Result<MaybeUpgradeH3, ErrorCode>
where R: BytesReader<'a>,

Upgrades to an HTTP3 stream.

Because bytes_reader could not contain all required data, this behaves more like an attempt of upgrading.

In case there are no enough information, MaybeUpgradeH3::Quic (i.e, self) will be returned.

If the stream type is unknown ErrorCode::StreamCreation is returned. In that case, MUST NOT consider unknown stream types to be a connection error of any kind.

Source

pub async fn upgrade_async<R>( self, reader: &mut R, ) -> Result<StreamUniRemoteH3, IoReadError>
where R: AsyncRead + Unpin + ?Sized,

Upgrades to an HTTP3 stream.