pub type StreamUniLocalH3 = Stream<UniLocal, H3>;Expand description
HTTP3 unidirectional remote stream.
Aliased Type§
pub struct StreamUniLocalH3 { /* private fields */ }Implementations§
Source§impl StreamUniLocalH3
impl StreamUniLocalH3
Sourcepub fn write_frame<W>(
&mut self,
frame: Frame<'_>,
bytes_writer: &mut W,
) -> Result<(), EndOfBuffer>where
W: BytesWriter,
pub fn write_frame<W>(
&mut self,
frame: Frame<'_>,
bytes_writer: &mut W,
) -> Result<(), EndOfBuffer>where
W: BytesWriter,
See Frame::write.
§Panics
Panics if the stream kind is StreamKind::WebTransport. In that case, use upgrade method.
Sourcepub async fn write_frame_async<W>(
&mut self,
frame: Frame<'_>,
writer: &mut W,
) -> Result<(), IoWriteError>
pub async fn write_frame_async<W>( &mut self, frame: Frame<'_>, writer: &mut W, ) -> Result<(), IoWriteError>
See Frame::write_async.
§Panics
Panics if the stream kind is StreamKind::WebTransport. In that case, use upgrade method.
Sourcepub fn write_frame_to_buffer(
&mut self,
frame: Frame<'_>,
buffer_writer: &mut BufferWriter<'_>,
) -> Result<(), EndOfBuffer>
pub fn write_frame_to_buffer( &mut self, frame: Frame<'_>, buffer_writer: &mut BufferWriter<'_>, ) -> Result<(), EndOfBuffer>
§Panics
Panics if the stream kind is StreamKind::WebTransport. In that case, use upgrade method.
Sourcepub fn upgrade(self) -> StreamUniLocalWT
pub fn upgrade(self) -> StreamUniLocalWT
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.