pub struct SendStream<B> { /* private fields */ }Available on crate features
h3 and quic only.Expand description
A wrapper around SendStream that implements quic::SendStream and
quic::SendStreamUnframed.
Trait Implementations§
Source§impl<B> SendStream<B> for SendStream<B>where
B: Buf,
impl<B> SendStream<B> for SendStream<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 SendStream<B>
impl<B> RefUnwindSafe for SendStream<B>where
B: RefUnwindSafe,
impl<B> Send for SendStream<B>where
B: Send,
impl<B> Sync for SendStream<B>where
B: Sync,
impl<B> Unpin for SendStream<B>where
B: Unpin,
impl<B> UnsafeUnpin for SendStream<B>where
B: UnsafeUnpin,
impl<B> UnwindSafe for SendStream<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