pub trait SendStreamUnframed<B>: SendStream<B>where
B: Buf,{
// Required method
fn poll_send<D>(
&mut self,
cx: &mut Context<'_>,
buf: &mut D,
) -> Poll<Result<usize, StreamErrorIncoming>>
where D: Buf;
}Available on crate feature
h3 only.Expand description
Allows sending unframed pure bytes to a stream. Similar to AsyncWrite
Required Methods§
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.