Skip to main content

Uart

Trait Uart 

Source
pub trait Uart {
    // Required methods
    fn write_bytes(&mut self, port: Port, data: &[u8]) -> Result<(), String>;
    fn read_bytes(&mut self, port: Port, max: usize) -> Result<Vec<u8>, String>;
}

Required Methods§

Source

fn write_bytes(&mut self, port: Port, data: &[u8]) -> Result<(), String>

Source

fn read_bytes(&mut self, port: Port, max: usize) -> Result<Vec<u8>, String>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§