pub trait MessageWriter: Send {
type Error: Error + Send + Sync + 'static;
// Required methods
fn send(
&mut self,
message: Vec<u8>,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
fn finish(&mut self) -> impl Future<Output = Result<(), Self::Error>> + Send;
fn abort(&mut self);
}Required Associated Types§
Required Methods§
fn send( &mut self, message: Vec<u8>, ) -> impl Future<Output = Result<(), Self::Error>> + Send
fn finish(&mut self) -> impl Future<Output = Result<(), Self::Error>> + Send
fn abort(&mut self)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".