pub struct UartPollRx<U, OS> { /* private fields */ }Implementations§
Source§impl<U: UartPeriph, OS: OsInterface> UartPollRx<U, OS>
impl<U: UartPeriph, OS: OsInterface> UartPollRx<U, OS>
pub fn new(uart: U, baudrate: u32, timeout: MicrosDurationU32) -> Self
Trait Implementations§
Source§impl<U: UartPeriph, OS: OsInterface> ErrorType for UartPollRx<U, OS>
impl<U: UartPeriph, OS: OsInterface> ErrorType for UartPollRx<U, OS>
Source§impl<U: UartPeriph, OS: OsInterface> ErrorType for UartPollRx<U, OS>
impl<U: UartPeriph, OS: OsInterface> ErrorType for UartPollRx<U, OS>
Source§impl<U: UartPeriph, OS: OsInterface> Read<u16> for UartPollRx<U, OS>
impl<U: UartPeriph, OS: OsInterface> Read<u16> for UartPollRx<U, OS>
Source§impl<U: UartPeriph, OS: OsInterface> Read for UartPollRx<U, OS>
impl<U: UartPeriph, OS: OsInterface> Read for UartPollRx<U, OS>
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 more