pub struct BidiStream<B> { /* private fields */ }Available on crate features
h3 and quic only.Expand description
Bidirectional stream.
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 RecvStream = RecvStream
type RecvStream = RecvStream
The type for the receive half.
Source§type SendStream = SendStream<B>
type SendStream = SendStream<B>
The type for the send half.
Source§fn split(
self,
) -> (<BidiStream<B> as BidiStream<B>>::SendStream, <BidiStream<B> as BidiStream<B>>::RecvStream)
fn split( self, ) -> (<BidiStream<B> as BidiStream<B>>::SendStream, <BidiStream<B> as BidiStream<B>>::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,
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 send_data<T>(&mut self, data: T) -> Result<(), StreamErrorIncoming>where
T: Into<WriteBuf<B>>,
fn send_data<T>(&mut self, data: T) -> Result<(), StreamErrorIncoming>where
T: Into<WriteBuf<B>>,
Send more data on the stream.
Auto Trait Implementations§
impl<B> !Freeze for BidiStream<B>
impl<B> RefUnwindSafe for BidiStream<B>where
B: RefUnwindSafe,
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> UnsafeUnpin for BidiStream<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for BidiStream<B>where
B: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more