pub trait I2cRead: Debug {
type Error;
type Read: Read + Unpin;
// Required method
fn poll_begin_read(
self: Pin<&mut Self>,
cx: &mut Context<'_>,
addr: u8,
) -> Poll<Result<Self::Read, Self::Error>>;
}Expand description
A peripheral that can perform I²C read operations.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".