Struct embedded_hal_mock::i2c::Transaction [−][src]
pub struct Transaction { /* fields omitted */ }
Expand description
I2C Transaction type
Models an I2C read or write
Implementations
Create a WriteRead transaction
Add an error return to a transaction
This is used to mock failure behaviours.
Note: When attaching this to a read transaction, the response in the expectation will not actually be written to the buffer.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations
Mutably borrows from an owned value. Read more