StreamUniLocalH3

Type Alias StreamUniLocalH3 

Source
pub type StreamUniLocalH3 = Stream<UniLocal, H3>;
Expand description

HTTP3 unidirectional remote stream.

Aliased Type§

pub struct StreamUniLocalH3 { /* private fields */ }

Implementations§

Source§

impl StreamUniLocalH3

Source

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.

Source

pub async fn write_frame_async<W>( &mut self, frame: Frame<'_>, writer: &mut W, ) -> Result<(), IoWriteError>
where W: AsyncWrite + Unpin + ?Sized,

See Frame::write_async.

§Panics

Panics if the stream kind is StreamKind::WebTransport. In that case, use upgrade method.

Source

pub fn write_frame_to_buffer( &mut self, frame: Frame<'_>, buffer_writer: &mut BufferWriter<'_>, ) -> Result<(), EndOfBuffer>

See Frame::write_to_buffer.

§Panics

Panics if the stream kind is StreamKind::WebTransport. In that case, use upgrade method.

Source

pub fn upgrade(self) -> StreamUniLocalWT

Upgrades to a WebTransport stream.

§Panics

Panics if the stream kind is not StreamKind::WebTransport.

Source

pub fn kind(&self) -> StreamKind

Returns the StreamKind associated with the stream.

Source

pub fn session_id(&self) -> Option<SessionId>

Returns the SessionId if stream is StreamKind::WebTransport, otherwise returns None.