pub struct BidiStream<B> { /* private fields */ }Available on crate feature
h3 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) -> (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,
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: Into<WriteBuf<B>>>(
&mut self,
data: T,
) -> Result<(), StreamErrorIncoming>
fn send_data<T: Into<WriteBuf<B>>>( &mut self, data: T, ) -> Result<(), StreamErrorIncoming>
Send more data on the stream.
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>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> 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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