Struct embedded_hal_mock::i2c::Transaction
source · pub struct Transaction { /* private fields */ }
Expand description
I2C Transaction type
Models an I2C read or write
Implementations§
source§impl Transaction
impl Transaction
sourcepub fn write_read(addr: u8, expected: Vec<u8>, response: Vec<u8>) -> Transaction
pub fn write_read(addr: u8, expected: Vec<u8>, response: Vec<u8>) -> Transaction
Create a WriteRead transaction
Trait Implementations§
source§impl Clone for Transaction
impl Clone for Transaction
source§fn clone(&self) -> Transaction
fn clone(&self) -> Transaction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more