pub trait MutBlockingRx {
type Error;
// Required method
fn getc(&mut self) -> Result<u8, Self::Error>;
// Provided method
fn gets<I>(&mut self, buffer: &mut I) -> Result<(), (usize, Self::Error)>
where I: AsMut<[u8]> + ?Sized { ... }
}
Expand description
Implementors of this trait offer octet based serial data reception 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", so this trait is not object safe.