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
Trait Implementations
Auto Trait Implementations
impl<TX, RX, CTS, RTS> RefUnwindSafe for AllPins<TX, RX, CTS, RTS>where
CTS: RefUnwindSafe,
RTS: RefUnwindSafe,
RX: RefUnwindSafe,
TX: RefUnwindSafe,
impl<TX, RX, CTS, RTS> Send for AllPins<TX, RX, CTS, RTS>where
CTS: Send,
RTS: Send,
RX: Send,
TX: Send,
impl<TX, RX, CTS, RTS> Sync for AllPins<TX, RX, CTS, RTS>where
CTS: Sync,
RTS: Sync,
RX: Sync,
TX: Sync,
impl<TX, RX, CTS, RTS> Unpin for AllPins<TX, RX, CTS, RTS>where
CTS: Unpin,
RTS: Unpin,
RX: Unpin,
TX: Unpin,
impl<TX, RX, CTS, RTS> UnwindSafe for AllPins<TX, RX, CTS, RTS>where
CTS: UnwindSafe,
RTS: UnwindSafe,
RX: UnwindSafe,
TX: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more