pub struct Rx<UART, PIN> { /* private fields */ }Expand description
Serial receiver half
Implementations§
Trait Implementations§
Source§impl<UART: UartX, PIN: RxPin<UART>> Read for Rx<UART, PIN>
impl<UART: UartX, PIN: RxPin<UART>> Read for Rx<UART, PIN>
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, PIN> Freeze for Rx<UART, PIN>
impl<UART, PIN> RefUnwindSafe for Rx<UART, PIN>where
UART: RefUnwindSafe,
PIN: RefUnwindSafe,
impl<UART, PIN> Send for Rx<UART, PIN>
impl<UART, PIN> Sync for Rx<UART, PIN>
impl<UART, PIN> Unpin for Rx<UART, PIN>
impl<UART, PIN> UnwindSafe for Rx<UART, PIN>where
UART: UnwindSafe,
PIN: 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