pub trait I2cEndpointProxyInterface: Send + Sync {
type TransferResponseFut: Future<Output = Result<I2cEndpointTransferResult, Error>> + Send;
// Required method
fn transfer(
&self,
write_data: &[u8],
read_length: u32,
) -> Self::TransferResponseFut;
}Required Associated Types§
type TransferResponseFut: Future<Output = Result<I2cEndpointTransferResult, Error>> + Send
Required Methods§
fn transfer( &self, write_data: &[u8], read_length: u32, ) -> Self::TransferResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".