pub type StreamUniLocalQuic = Stream<UniLocal, Quic>;Expand description
QUIC unidirectional remote stream.
Aliased Type§
pub struct StreamUniLocalQuic { /* private fields */ }Implementations§
Source§impl StreamUniLocalQuic
impl StreamUniLocalQuic
Sourcepub fn upgrade<W>(
self,
stream_header: StreamHeader,
bytes_writer: &mut W,
) -> StreamUniLocalH3where
W: BytesWriter,
pub fn upgrade<W>(
self,
stream_header: StreamHeader,
bytes_writer: &mut W,
) -> StreamUniLocalH3where
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.
Sourcepub async fn upgrade_async<W>(
self,
stream_header: StreamHeader,
writer: &mut W,
) -> Result<StreamUniLocalH3, IoWriteError>
pub async fn upgrade_async<W>( self, stream_header: StreamHeader, writer: &mut W, ) -> Result<StreamUniLocalH3, IoWriteError>
Upgrades to an HTTP3 stream.
Sourcepub fn upgrade_size(stream_header: StreamHeader) -> usize
pub fn upgrade_size(stream_header: StreamHeader) -> usize
Returns the buffer capacity needed for Self::upgrade.