Trait salvo_core::proto::quic::SendStream
source · pub trait SendStream<B>where
B: Buf,{
type Error: Into<Box<dyn Error>>;
// Required methods
fn poll_ready(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>;
fn send_data<T>(&mut self, data: T) -> Result<(), Self::Error>
where T: Into<WriteBuf<B>>;
fn poll_finish(
&mut self,
cx: &mut Context<'_>
) -> Poll<Result<(), Self::Error>>;
fn reset(&mut self, reset_code: u64);
fn send_id(&self) -> StreamId;
}
Available on crate feature
quinn
only.Expand description
A trait describing the “send” actions of a QUIC stream.
Required Associated Types§
Required Methods§
sourcefn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Polls if the stream can send more data.
Object Safety§
This trait is not object safe.