pub struct Rx<UART> { /* private fields */ }Expand description
Uart receiver
Trait Implementations§
Source§impl Read for Rx<UART1>
impl Read for Rx<UART1>
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf. Read moreSource§impl Read for Rx<UART2>
impl Read for Rx<UART2>
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf. Read moreAuto Trait Implementations§
impl<UART> Freeze for Rx<UART>
impl<UART> RefUnwindSafe for Rx<UART>where
UART: RefUnwindSafe,
impl<UART> Send for Rx<UART>where
UART: Send,
impl<UART> Sync for Rx<UART>where
UART: Sync,
impl<UART> Unpin for Rx<UART>where
UART: Unpin,
impl<UART> UnsafeUnpin for Rx<UART>
impl<UART> UnwindSafe for Rx<UART>where
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