pub type StreamUniRemoteQuic = Stream<UniRemote, Quic>;Expand description
QUIC unidirectional remote stream.
Aliased Type§
pub struct StreamUniRemoteQuic { /* private fields */ }Implementations§
Source§impl StreamUniRemoteQuic
impl StreamUniRemoteQuic
Sourcepub fn accept_uni() -> Self
pub fn accept_uni() -> Self
Creates a new remote-initialized unidirectional stream.
Sourcepub fn upgrade<'a, R>(
self,
bytes_reader: &mut R,
) -> Result<MaybeUpgradeH3, ErrorCode>where
R: BytesReader<'a>,
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.
Sourcepub async fn upgrade_async<R>(
self,
reader: &mut R,
) -> Result<StreamUniRemoteH3, IoReadError>
pub async fn upgrade_async<R>( self, reader: &mut R, ) -> Result<StreamUniRemoteH3, IoReadError>
Upgrades to an HTTP3 stream.