Trait salvo_core::proto::quic::SendStreamUnframed

source ·
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, Self::Error>> where D: Buf; }
Available on crate feature quinn only.
Expand description

Allows sending unframed pure bytes to a stream. Similar to AsyncWrite

Required Methods§

source

fn poll_send<D>( &mut self, cx: &mut Context<'_>, buf: &mut D ) -> Poll<Result<usize, Self::Error>>
where D: Buf,

Attempts write data into the stream.

Returns the number of bytes written.

buf is advanced by the number of bytes written.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<B> SendStreamUnframed<B> for salvo_http3::http3_quinn::BidiStream<B>
where B: Buf,

source§

impl<B> SendStreamUnframed<B> for salvo_http3::http3_quinn::SendStream<B>
where B: Buf,

source§

impl<S, B> SendStreamUnframed<B> for salvo_core::webtransport::stream::BidiStream<S, B>
where S: SendStreamUnframed<B>, B: Buf,

source§

impl<S, B> SendStreamUnframed<B> for salvo_core::webtransport::stream::SendStream<S, B>
where S: SendStreamUnframed<B>, B: Buf,

source§

impl<S, B> SendStreamUnframed<B> for BufRecvStream<S, B>
where B: Buf, S: SendStreamUnframed<B>,