pub trait UartMiddleware: Middleware{
// Provided methods
fn get_baudrate_impl(&self) -> Result<u32> { ... }
fn set_baudrate_impl(&self, baudrate: u32) -> Result<()> { ... }
fn get_flow_control_impl(&self) -> Result<FlowControl> { ... }
fn set_flow_control_impl(&self, flow_control: bool) -> Result<()> { ... }
fn get_device_path_impl(&self) -> Result<String> { ... }
fn clear_rx_buffer_impl(&self) -> Result<()> { ... }
fn set_parity_impl(&self, parity: Parity) -> Result<()> { ... }
fn get_parity_impl(&self) -> Result<Parity> { ... }
fn set_break_impl(&self, enable: bool) -> Result<()> { ... }
fn borrow_fd_impl(&self) -> Result<BorrowedFd<'_>> { ... }
}Expand description
Interface for middlewares that forward UART methods.