StreamBiRemoteH3

Type Alias StreamBiRemoteH3 

Source
pub type StreamBiRemoteH3 = Stream<BiRemote, H3>;
Expand description

HTTP3 bidirectional remote stream.

Aliased Type§

pub struct StreamBiRemoteH3 { /* private fields */ }

Implementations§

Source§

impl StreamBiRemoteH3

Source

pub fn read_frame<'a, R>( &mut self, bytes_reader: &mut R, ) -> Result<Option<Frame<'a>>, ErrorCode>
where R: BytesReader<'a>,

Source

pub async fn read_frame_async<'a, R>( &mut self, reader: &mut R, ) -> Result<Frame<'a>, IoReadError>
where R: AsyncRead + Unpin + ?Sized,

Source

pub fn read_frame_from_buffer<'a>( &mut self, buffer_reader: &mut BufferReader<'a>, ) -> Result<Option<Frame<'a>>, ErrorCode>

Source

pub fn write_frame<W>( &self, frame: Frame<'_>, bytes_writer: &mut W, ) -> Result<(), EndOfBuffer>
where W: BytesWriter,

Source

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

Source

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

Source

pub fn upgrade(self, session_id: SessionId) -> StreamBiRemoteWT

Upgrades to a WebTransport stream.

Note: upgrade should be performed only when FrameKind::WebTransport is received as first frame on this HTTP3 stream.

Source

pub fn into_session(self, session_request: SessionRequest) -> StreamSession

Converts the stream into a StreamSession.