[][src]Struct esp32_hal::serial::Pins

pub struct Pins<TX: OutputPin, RX: InputPin, CTS: InputPin = Gpio19<Input<Floating>>, RTS: OutputPin = Gpio22<Output<PushPull>>> {
    pub tx: TX,
    pub rx: RX,
    pub cts: Option<CTS>,
    pub rts: Option<RTS>,
}

Pins used by the UART interface

Note that any two pins may be used

Fields

tx: TXrx: RXcts: Option<CTS>rts: Option<RTS>

Auto Trait Implementations

impl<TX, RX, CTS, RTS> Send for Pins<TX, RX, CTS, RTS> where
    CTS: Send,
    RTS: Send,
    RX: Send,
    TX: Send

impl<TX, RX, CTS, RTS> Sync for Pins<TX, RX, CTS, RTS> where
    CTS: Sync,
    RTS: Sync,
    RX: Sync,
    TX: Sync

impl<TX, RX, CTS, RTS> Unpin for Pins<TX, RX, CTS, RTS> where
    CTS: Unpin,
    RTS: Unpin,
    RX: Unpin,
    TX: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.