Skip to main content

CotpWriter

Trait CotpWriter 

Source
pub trait CotpWriter: Send {
    // Required methods
    fn send(
        &mut self,
        data: &[u8],
    ) -> impl Future<Output = Result<(), CotpError>> + Send;
    fn continue_send(
        &mut self,
    ) -> impl Future<Output = Result<(), CotpError>> + Send;
}

Required Methods§

Source

fn send( &mut self, data: &[u8], ) -> impl Future<Output = Result<(), CotpError>> + Send

Source

fn continue_send( &mut self, ) -> impl Future<Output = Result<(), CotpError>> + Send

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.

Implementors§