pub struct BidiStream<B>where
B: Buf,{ /* private fields */ }Expand description
QUIC-backed bidirectional stream
Implements http3::quic::BidiStream which allows the stream to be split
into two structs each implementing one direction.
Trait Implementations§
Source§impl<B> BidiStream<B> for BidiStream<B>where
B: Buf,
impl<B> BidiStream<B> for BidiStream<B>where
B: Buf,
Source§type SendStream = SendStream<B>
type SendStream = SendStream<B>
The type for the send half.
Source§type RecvStream = RecvStream
type RecvStream = RecvStream
The type for the receive half.
Source§fn split(self) -> (Self::SendStream, Self::RecvStream)
fn split(self) -> (Self::SendStream, Self::RecvStream)
Split this stream into two halves.
Source§impl<B> Is0rtt for BidiStream<B>where
B: Buf,
impl<B> Is0rtt for BidiStream<B>where
B: Buf,
Source§impl<B: Buf> RecvStream for BidiStream<B>
impl<B: Buf> RecvStream for BidiStream<B>
Source§impl<B> SendStream<B> for BidiStream<B>where
B: Buf,
impl<B> SendStream<B> for BidiStream<B>where
B: Buf,
Source§fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), StreamErrorIncoming>>
fn poll_ready( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), StreamErrorIncoming>>
Polls if the stream can send more data.
Source§fn poll_finish(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), StreamErrorIncoming>>
fn poll_finish( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<(), StreamErrorIncoming>>
Poll to finish the sending side of the stream.
Source§fn poll_stopped(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<Option<u64>, StreamErrorIncoming>>
fn poll_stopped( &mut self, cx: &mut Context<'_>, ) -> Poll<Result<Option<u64>, StreamErrorIncoming>>
Polls the peer’s response to the send direction. Read more
Auto Trait Implementations§
impl<B> !Freeze for BidiStream<B>
impl<B> !RefUnwindSafe for BidiStream<B>
impl<B> !UnwindSafe for BidiStream<B>
impl<B> Send for BidiStream<B>where
SendStream<B>: Send,
impl<B> Sync for BidiStream<B>where
SendStream<B>: Sync,
impl<B> Unpin for BidiStream<B>where
SendStream<B>: Unpin,
impl<B> UnsafeUnpin for BidiStream<B>where
SendStream<B>: UnsafeUnpin,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more