pub enum Uart<'d> {
UART0(UART0<'d>),
UART1(UART1<'d>),
}Available on crate feature
uart only.Expand description
Peripheral-agnostic UART driver.
Variants§
Trait Implementations§
Source§impl Read for Uart<'_>
impl Read for Uart<'_>
Source§impl Write for Uart<'_>
impl Write for Uart<'_>
Source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Auto Trait Implementations§
impl<'d> Freeze for Uart<'d>
impl<'d> RefUnwindSafe for Uart<'d>
impl<'d> Send for Uart<'d>
impl<'d> Sync for Uart<'d>
impl<'d> Unpin for Uart<'d>
impl<'d> !UnwindSafe for Uart<'d>
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