Skip to main content

MessageWriter

Trait MessageWriter 

Source
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§

Source

type Error: Error + Send + Sync + 'static

Required Methods§

Source

fn send( &mut self, message: Vec<u8>, ) -> impl Future<Output = Result<(), Self::Error>> + Send

Source

fn finish(&mut self) -> impl Future<Output = Result<(), Self::Error>> + Send

Source

fn abort(&mut self)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§