StreamSession

Type Alias StreamSession 

Source
pub type StreamSession = Stream<Bi, Session>;
Expand description

HTTP3 bidirectional stream carrying CONNECT request and response.

Aliased Type§

pub struct StreamSession { /* private fields */ }

Implementations§

Source§

impl StreamSession

Source

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

Source

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

Source

pub fn read_frame_from_buffer<'a>( &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 request(&self) -> &SessionRequest

Returns the SessionRequest associated.