pub struct Rx { /* private fields */ }
Expand description

Type-level variant of the Capability enum for simplex, Receive-only transactions

Spi structs are Rx when the DO (Data Out) type is NoneT in the corresponding Pads struct.

While the Tx and Duplex structs are zero-sized, this struct is not. Because an SPI master must initiate all transactions, using it in a simplex, Receive-only context is slightly complicated. In that case, the Spi struct must track whether a transaction needs to be started or is already in progress. This struct contains a bool to track that progress.

Trait Implementations

Returns the “default value” for a type. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

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.