pub struct BidiStream<B>where
B: Buf,{
pub(crate) send: SendStream<B>,
pub(crate) recv: RecvStream,
}Expand description
Quinn-backed bidirectional stream
Implements [quic::BidiStream] which allows the stream to be split into two structs each implementing one direction.
Fields§
§send: SendStream<B>§recv: RecvStreamTrait 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§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.
Auto Trait Implementations§
impl<B> !Freeze for BidiStream<B>
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