Struct esp32c2_hal::serial::AllPins

source ·
pub struct AllPins<TX, RX, CTS, RTS>where
    TX: OutputPin,
    RX: InputPin,
    CTS: InputPin,
    RTS: OutputPin,
{ pub tx: Option<TX>, pub rx: Option<RX>, pub cts: Option<CTS>, pub rts: Option<RTS>, }
Expand description

All pins offered by UART

Fields§

§tx: Option<TX>§rx: Option<RX>§cts: Option<CTS>§rts: Option<RTS>

Implementations§

Tx and Rx pins

Trait Implementations§

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.

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.