FocSerial

Trait FocSerial 

Source
pub trait FocSerial {
    // Required methods
    fn receive(
        &mut self,
        buffer: &mut [u8],
    ) -> impl Future<Output = Result<usize>>;
    fn send(&mut self, buffer: &[u8]) -> Result<()>;
}

Required Methods§

Source

fn receive(&mut self, buffer: &mut [u8]) -> impl Future<Output = Result<usize>>

Source

fn send(&mut self, buffer: &[u8]) -> Result<()>

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§