Enum driver_pal::mock::MockTransaction[][src]

pub enum MockTransaction {
Show 15 variants None, SpiWrite(IdVec<u8>, Vec<u8>), SpiRead(IdVec<u8>, Vec<u8>), SpiExec(IdVec<MockExec>), Busy(IdPinState), Ready(IdPinState), Reset(IdPinState), Write(IdVec<u8>), Transfer(IdVec<u8>, Vec<u8>), IsHigh(Idbool), IsLow(Idbool), SetHigh(Id), SetLow(Id), DelayMs(u32), DelayUs(u32),
}
Expand description

Mock transaction type for setting and checking expectations

Variants

None
SpiWrite(IdVec<u8>, Vec<u8>)

Tuple Fields of SpiWrite

0: Id1: Vec<u8>2: Vec<u8>
SpiRead(IdVec<u8>, Vec<u8>)

Tuple Fields of SpiRead

0: Id1: Vec<u8>2: Vec<u8>
SpiExec(IdVec<MockExec>)

Tuple Fields of SpiExec

0: Id1: Vec<MockExec>
Busy(IdPinState)

Tuple Fields of Busy

0: Id1: PinState
Ready(IdPinState)

Tuple Fields of Ready

0: Id1: PinState
Reset(IdPinState)

Tuple Fields of Reset

0: Id1: PinState
Write(IdVec<u8>)

Tuple Fields of Write

0: Id1: Vec<u8>
Transfer(IdVec<u8>, Vec<u8>)

Tuple Fields of Transfer

0: Id1: Vec<u8>2: Vec<u8>
IsHigh(Idbool)

Tuple Fields of IsHigh

0: Id1: bool
IsLow(Idbool)

Tuple Fields of IsLow

0: Id1: bool
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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.