pub struct ValidatedPinRx<P, Uart>(/* private fields */);Expand description
A runtime validated Rx pin for the given UART.
Implementations§
Source§impl<P, U> ValidatedPinRx<P, U>
impl<P, U> ValidatedPinRx<P, U>
Sourcepub fn validate(p: P, _u: &U) -> Result<ValidatedPinRx<P, U>, P>
pub fn validate(p: P, _u: &U) -> Result<ValidatedPinRx<P, U>, P>
Validate a pin’s function on a uart peripheral.
Will err if the pin cannot be used as a Rx pin for that Uart.
Trait Implementations§
impl<P, UART> ValidPinRx<UART> for ValidatedPinRx<P, UART>where
P: AnyPin,
UART: UartDevice,
Auto Trait Implementations§
impl<P, Uart> Freeze for ValidatedPinRx<P, Uart>where
P: Freeze,
impl<P, Uart> RefUnwindSafe for ValidatedPinRx<P, Uart>where
P: RefUnwindSafe,
Uart: RefUnwindSafe,
impl<P, Uart> Send for ValidatedPinRx<P, Uart>
impl<P, Uart> Sync for ValidatedPinRx<P, Uart>
impl<P, Uart> Unpin for ValidatedPinRx<P, Uart>
impl<P, Uart> UnwindSafe for ValidatedPinRx<P, Uart>where
P: UnwindSafe,
Uart: UnwindSafe,
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
Source§impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
impl<Choices> CoproductSubsetter<CNil, HNil> for Choices
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more