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
Sourcepub fn set_baudrate(&self, baudrate: u32) -> Result<(), ConfigError>
pub fn set_baudrate(&self, baudrate: u32) -> Result<(), ConfigError>
Set baudrate
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