pub struct UartRx<T: UartPeripheral> { /* private fields */ }Implementations§
Source§impl<RX: UartRxPeripheral> UartRx<RX>
impl<RX: UartRxPeripheral> UartRx<RX>
pub fn new(peripheral: RX, config: UartConfig) -> Self
Trait Implementations§
Source§impl<T: UartPeripheral> ErrorType for UartRx<T>
impl<T: UartPeripheral> ErrorType for UartRx<T>
Source§impl<T: UartPeripheral> Read for UartRx<T>
impl<T: UartPeripheral> Read for UartRx<T>
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, 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 moreSource§impl<T: UartPeripheral> Read for UartRx<T>
impl<T: UartPeripheral> Read for UartRx<T>
Source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§async fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
async fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf. Read moreSource§impl<T: UartPeripheral> SetConfig for UartRx<T>
impl<T: UartPeripheral> SetConfig for UartRx<T>
Source§type Config = UartConfig
type Config = UartConfig
The configuration type used by this driver.
Source§type ConfigError = ()
type ConfigError = ()
The error type that can occur if
set_config fails.Auto Trait Implementations§
impl<T> Freeze for UartRx<T>where
T: Freeze,
impl<T> RefUnwindSafe for UartRx<T>where
T: RefUnwindSafe,
impl<T> Send for UartRx<T>where
T: Send,
impl<T> Sync for UartRx<T>where
T: Sync,
impl<T> Unpin for UartRx<T>where
T: Unpin,
impl<T> UnsafeUnpin for UartRx<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UartRx<T>where
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