Struct embassy_stm32::usart::BufferedUartRx
source · pub struct BufferedUartRx<'d, T: BasicInstance> { /* private fields */ }
Expand description
Rx-only buffered UART
Implementations§
source§impl<'d, T: BasicInstance> BufferedUartRx<'d, T>
impl<'d, T: BasicInstance> BufferedUartRx<'d, T>
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, T: BasicInstance> BufRead for BufferedUartRx<'d, T>
impl<'d, T: BasicInstance> BufRead for BufferedUartRx<'d, T>
source§impl<'d, T: BasicInstance> Drop for BufferedUartRx<'d, T>
impl<'d, T: BasicInstance> Drop for BufferedUartRx<'d, T>
source§impl<'d, T: BasicInstance> ErrorType for BufferedUartRx<'d, T>
impl<'d, T: BasicInstance> ErrorType for BufferedUartRx<'d, T>
source§impl<'d, T: BasicInstance> ErrorType for BufferedUartRx<'d, T>
impl<'d, T: BasicInstance> ErrorType for BufferedUartRx<'d, T>
source§impl<'d, T: BasicInstance> Read for BufferedUartRx<'d, T>
impl<'d, T: BasicInstance> Read for BufferedUartRx<'d, T>
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, T: BasicInstance> Read for BufferedUartRx<'d, T>
impl<'d, T: BasicInstance> Read for BufferedUartRx<'d, T>
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, T: BasicInstance> Read for BufferedUartRx<'d, T>
impl<'d, T: BasicInstance> Read for BufferedUartRx<'d, T>
source§impl<'d, T: BasicInstance> SetConfig for BufferedUartRx<'d, T>
impl<'d, T: BasicInstance> SetConfig for BufferedUartRx<'d, T>
§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, T> Freeze for BufferedUartRx<'d, T>
impl<'d, T> RefUnwindSafe for BufferedUartRx<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for BufferedUartRx<'d, T>
impl<'d, T> Sync for BufferedUartRx<'d, T>where
T: Sync,
impl<'d, T> Unpin for BufferedUartRx<'d, T>
impl<'d, T> !UnwindSafe for BufferedUartRx<'d, T>
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