Struct h3_quinn::BidiStream
source · pub struct BidiStream<B>where
B: Buf,{ /* private fields */ }
Expand description
Quinn-backed bidirectional stream
Implements 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,
§type SendStream = SendStream<B>
type SendStream = SendStream<B>
The type for the send half.
§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> RecvStream for BidiStream<B>where
B: Buf,
impl<B> RecvStream for BidiStream<B>where B: Buf,
source§impl<B> SendStream<B> for BidiStream<B>where
B: Buf,
impl<B> SendStream<B> for BidiStream<B>where B: Buf,
§type Error = SendStreamError
type Error = SendStreamError
The error type returned by fallible send methods.
source§fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Polls if the stream can send more data.
source§fn poll_finish(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_finish(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Poll to finish the sending side of the stream.
Auto Trait Implementations§
impl<B> !RefUnwindSafe for BidiStream<B>
impl<B> Send for BidiStream<B>where B: Send,
impl<B> Sync for BidiStream<B>where B: Sync,
impl<B> Unpin for BidiStream<B>where B: Unpin,
impl<B> !UnwindSafe for BidiStream<B>
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