pub trait SendStream<B>where
B: Buf,{
// Required methods
fn poll_ready(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), StreamErrorIncoming>>;
fn send_data<T>(&mut self, data: T) -> Result<(), StreamErrorIncoming>
where T: Into<WriteBuf<B>>;
fn poll_finish(
&mut self,
cx: &mut Context<'_>,
) -> Poll<Result<(), StreamErrorIncoming>>;
fn reset(&mut self, reset_code: u64);
fn send_id(&self) -> StreamId;
}Available on crate feature
h3 only.Expand description
A trait describing the “send” actions of a QUIC stream.
Required Methods§
Sourcefn 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.
Sourcefn send_data<T>(&mut self, data: T) -> Result<(), StreamErrorIncoming>
fn send_data<T>(&mut self, data: T) -> Result<(), StreamErrorIncoming>
Send more data on the stream.
Sourcefn 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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.