pub trait Icm20948Transport {
type Error: Into<SetupError<Self::Error>>;
// Required methods
fn read_registers(
&mut self,
reg_addr: u8,
read: &mut [u8],
) -> impl Future<Output = Result<(), Self::Error>>;
fn write_registers(
&mut self,
reg_addr: u8,
write: &[u8],
) -> impl Future<Output = Result<(), Self::Error>>;
}Required Associated Types§
type Error: Into<SetupError<Self::Error>>
Required Methods§
fn read_registers( &mut self, reg_addr: u8, read: &mut [u8], ) -> impl Future<Output = Result<(), Self::Error>>
fn write_registers( &mut self, reg_addr: u8, write: &[u8], ) -> impl Future<Output = Result<(), Self::Error>>
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.