Enum driver_pal::mock::MockTransaction [−][src]
pub enum MockTransaction {
Show 15 variants
None,
SpiWrite(Id, Vec<u8>, Vec<u8>),
SpiRead(Id, Vec<u8>, Vec<u8>),
SpiExec(Id, Vec<MockExec>),
Busy(Id, PinState),
Ready(Id, PinState),
Reset(Id, PinState),
Write(Id, Vec<u8>),
Transfer(Id, Vec<u8>, Vec<u8>),
IsHigh(Id, bool),
IsLow(Id, bool),
SetHigh(Id),
SetLow(Id),
DelayMs(u32),
DelayUs(u32),
}
Expand description
Mock transaction type for setting and checking expectations
Variants
SetHigh(Id)
Tuple Fields of SetHigh
0: Id
SetLow(Id)
Tuple Fields of SetLow
0: Id
DelayMs(u32)
Tuple Fields of DelayMs
0: u32
DelayUs(u32)
Tuple Fields of DelayUs
0: u32
Implementations
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 MockTransaction
impl Send for MockTransaction
impl Sync for MockTransaction
impl Unpin for MockTransaction
impl UnwindSafe for MockTransaction
Blanket Implementations
Mutably borrows from an owned value. Read more