pub type StreamUniRemoteH3 = Stream<UniRemote, H3>;Expand description
HTTP3 unidirectional remote stream.
Aliased Type§
pub struct StreamUniRemoteH3 { /* private fields */ }Implementations§
Source§impl StreamUniRemoteH3
impl StreamUniRemoteH3
Sourcepub fn read_frame<'a, R>(
&mut self,
bytes_reader: &mut R,
) -> Result<Option<Frame<'a>>, ErrorCode>where
R: BytesReader<'a>,
pub fn read_frame<'a, R>(
&mut self,
bytes_reader: &mut R,
) -> Result<Option<Frame<'a>>, ErrorCode>where
R: BytesReader<'a>,
See Frame::read.
§Panics
Panics if the stream kind is StreamKind::WebTransport. In that case, use upgrade method.
Sourcepub async fn read_frame_async<'a, R>(
&mut self,
reader: &mut R,
) -> Result<Frame<'a>, IoReadError>
pub async fn read_frame_async<'a, R>( &mut self, reader: &mut R, ) -> Result<Frame<'a>, IoReadError>
See Frame::read_async.
§Panics
Panics if the stream kind is StreamKind::WebTransport. In that case, use upgrade method.
Sourcepub fn read_frame_from_buffer<'a>(
&mut self,
buffer_reader: &mut BufferReader<'a>,
) -> Result<Option<Frame<'a>>, ErrorCode>
pub fn read_frame_from_buffer<'a>( &mut self, buffer_reader: &mut BufferReader<'a>, ) -> Result<Option<Frame<'a>>, ErrorCode>
§Panics
Panics if the stream kind is StreamKind::WebTransport. In that case, use upgrade method.
Sourcepub fn upgrade(self) -> StreamUniRemoteWT
pub fn upgrade(self) -> StreamUniRemoteWT
Upgrades to a WebTransport stream.
§Panics
Panics if the stream kind is not StreamKind::WebTransport.
Sourcepub fn kind(&self) -> StreamKind
pub fn kind(&self) -> StreamKind
Returns the StreamKind associated with the stream.
Sourcepub fn session_id(&self) -> Option<SessionId>
pub fn session_id(&self) -> Option<SessionId>
Returns the SessionId if stream is StreamKind::WebTransport,
otherwise returns None.