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