Struct embassy_stm32::usart::BufferedUartTx
source · pub struct BufferedUartTx<'d, T: BasicInstance> { /* private fields */ }
Expand description
Tx-only buffered UART
Implementations§
source§impl<'d, T: BasicInstance> BufferedUartTx<'d, T>
impl<'d, T: BasicInstance> BufferedUartTx<'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> Drop for BufferedUartTx<'d, T>
impl<'d, T: BasicInstance> Drop for BufferedUartTx<'d, T>
source§impl<'d, T: BasicInstance> ErrorType for BufferedUartTx<'d, T>
impl<'d, T: BasicInstance> ErrorType for BufferedUartTx<'d, T>
source§impl<'d, T: BasicInstance> ErrorType for BufferedUartTx<'d, T>
impl<'d, T: BasicInstance> ErrorType for BufferedUartTx<'d, T>
source§impl<'d, T: BasicInstance> SetConfig for BufferedUartTx<'d, T>
impl<'d, T: BasicInstance> SetConfig for BufferedUartTx<'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.
source§impl<'d, T: BasicInstance> Write for BufferedUartTx<'d, T>
impl<'d, T: BasicInstance> Write for BufferedUartTx<'d, T>
source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
source§impl<'d, T: BasicInstance> Write for BufferedUartTx<'d, T>
impl<'d, T: BasicInstance> Write for BufferedUartTx<'d, T>
source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
source§impl<'d, T: BasicInstance> Write for BufferedUartTx<'d, T>
impl<'d, T: BasicInstance> Write for BufferedUartTx<'d, T>
source§impl<'d, T: BasicInstance> Write<u8> for BufferedUartTx<'d, T>
impl<'d, T: BasicInstance> Write<u8> for BufferedUartTx<'d, T>
Auto Trait Implementations§
impl<'d, T> Freeze for BufferedUartTx<'d, T>
impl<'d, T> RefUnwindSafe for BufferedUartTx<'d, T>where
T: RefUnwindSafe,
impl<'d, T> Send for BufferedUartTx<'d, T>
impl<'d, T> Sync for BufferedUartTx<'d, T>where
T: Sync,
impl<'d, T> Unpin for BufferedUartTx<'d, T>
impl<'d, T> !UnwindSafe for BufferedUartTx<'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