pub struct UartInterruptRx<U, OS: OsInterface> { /* private fields */ }Implementations§
Source§impl<U, OS> UartInterruptRx<U, OS>where
U: UartPeriph,
OS: OsInterface,
impl<U, OS> UartInterruptRx<U, OS>where
U: UartPeriph,
OS: OsInterface,
pub fn new( uart: [U; 2], buf_size: usize, timeout: MicrosDurationU32, ) -> (Self, UartInterruptRxHandler<U, OS>)
Trait Implementations§
Source§impl<U: UartPeriph, OS: OsInterface> ErrorType for UartInterruptRx<U, OS>
impl<U: UartPeriph, OS: OsInterface> ErrorType for UartInterruptRx<U, OS>
Source§impl<U, OS> Read for UartInterruptRx<U, OS>where
U: UartPeriph,
OS: OsInterface,
impl<U, OS> Read for UartInterruptRx<U, OS>where
U: UartPeriph,
OS: OsInterface,
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