pub struct UartInterruptRx<U, T> { /* private fields */ }Implementations§
Source§impl<U, T> UartInterruptRx<U, T>where
U: UartPeriph,
T: Timeout,
impl<U, T> UartInterruptRx<U, T>where
U: UartPeriph,
T: Timeout,
pub fn new( uart: [U; 2], buf_size: usize, timeout: T, ) -> (Self, UartInterruptRxHandler<U>)
Trait Implementations§
Source§impl<U: UartPeriph, T: Timeout> ErrorType for UartInterruptRx<U, T>
impl<U: UartPeriph, T: Timeout> ErrorType for UartInterruptRx<U, T>
Source§impl<U, T> Read for UartInterruptRx<U, T>where
U: UartPeriph,
T: Timeout,
impl<U, T> Read for UartInterruptRx<U, T>where
U: UartPeriph,
T: Timeout,
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<U, T> !Freeze for UartInterruptRx<U, T>
impl<U, T> !RefUnwindSafe for UartInterruptRx<U, T>
impl<U, T> Send for UartInterruptRx<U, T>
impl<U, T> !Sync for UartInterruptRx<U, T>
impl<U, T> Unpin for UartInterruptRx<U, T>
impl<U, T> UnwindSafe for UartInterruptRx<U, T>where
U: UnwindSafe,
T: 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