pub trait SendStream:
AsyncWrite
+ Send
+ Unpin
+ 'static {
type FinishError: Error + Send + Sync + 'static;
// Required methods
fn finish(
&mut self,
) -> impl Future<Output = Result<(), Self::FinishError>> + Send;
fn reset(&mut self, code: u32);
}Expand description
Abstraction over a QUIC send stream.
Implementations must support async writing and graceful/abrupt shutdown.
Required Associated Types§
Sourcetype FinishError: Error + Send + Sync + 'static
type FinishError: Error + Send + Sync + 'static
Error type for finishing the stream.
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.