pub trait MutBlockingTx {
type Error;
// Required method
fn putc(&mut self, ch: u8) -> Result<(), Self::Error>;
// Provided method
fn puts<I>(&mut self, data: &I) -> Result<(), (usize, Self::Error)>
where I: AsRef<[u8]> + ?Sized { ... }
}Expand description
Implementors of this trait offer octet based serial data transmission using a blocking API and requiring a mutable reference to self.
Required Associated Types§
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".