pub struct BufferedUartRx<'d> { /* private fields */ }
Expand description
Rx-only buffered UART
Created with BufferedUart::split
Implementations§
source§impl<'d> BufferedUartRx<'d>
impl<'d> BufferedUartRx<'d>
sourcepub fn set_config(&mut self, config: &Config) -> Result<(), ConfigError>
pub fn set_config(&mut self, config: &Config) -> Result<(), ConfigError>
Reconfigure the driver
Trait Implementations§
source§impl<'d> BufRead for BufferedUartRx<'d>
impl<'d> BufRead for BufferedUartRx<'d>
source§impl<'d> Drop for BufferedUartRx<'d>
impl<'d> Drop for BufferedUartRx<'d>
source§impl<'d> ErrorType for BufferedUartRx<'d>
impl<'d> ErrorType for BufferedUartRx<'d>
source§impl<'d> Read for BufferedUartRx<'d>
impl<'d> Read for BufferedUartRx<'d>
source§async fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
async 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§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<'d> Read for BufferedUartRx<'d>
impl<'d> Read for BufferedUartRx<'d>
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 moresource§impl<'d> Read for BufferedUartRx<'d>
impl<'d> Read for BufferedUartRx<'d>
source§impl<'d> ReadReady for BufferedUartRx<'d>
impl<'d> ReadReady for BufferedUartRx<'d>
source§impl<'d> SetConfig for BufferedUartRx<'d>
impl<'d> SetConfig for BufferedUartRx<'d>
source§type ConfigError = ConfigError
type ConfigError = ConfigError
The error type that can occur if
set_config
fails.source§fn set_config(&mut self, config: &Self::Config) -> Result<(), Self::ConfigError>
fn set_config(&mut self, config: &Self::Config) -> Result<(), Self::ConfigError>
Set the configuration of the driver.
Auto Trait Implementations§
impl<'d> Freeze for BufferedUartRx<'d>
impl<'d> !RefUnwindSafe for BufferedUartRx<'d>
impl<'d> Send for BufferedUartRx<'d>
impl<'d> Sync for BufferedUartRx<'d>
impl<'d> Unpin for BufferedUartRx<'d>
impl<'d> !UnwindSafe for BufferedUartRx<'d>
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