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§
Auto Trait Implementations§
impl Freeze for Rx
impl RefUnwindSafe for Rx
impl Send for Rx
impl Sync for Rx
impl Unpin for Rx
impl UnwindSafe for Rx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more