Skip to main content

I2cEndpointProxyInterface

Trait I2cEndpointProxyInterface 

Source
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§

Required Methods§

Source

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".

Implementors§