pub struct BufferedUartTx<'d> { /* private fields */ }
Expand description
Tx-only buffered UART
Created with BufferedUart::split
Implementations§
source§impl<'d> BufferedUartTx<'d>
impl<'d> BufferedUartTx<'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 send_break(&self)
pub fn send_break(&self)
Send break character
Trait Implementations§
source§impl<'d> Drop for BufferedUartTx<'d>
impl<'d> Drop for BufferedUartTx<'d>
source§impl<'d> ErrorType for BufferedUartTx<'d>
impl<'d> ErrorType for BufferedUartTx<'d>
source§impl<'d> SetConfig for BufferedUartTx<'d>
impl<'d> SetConfig for BufferedUartTx<'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.
source§impl<'d> Write for BufferedUartTx<'d>
impl<'d> Write for BufferedUartTx<'d>
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> Write for BufferedUartTx<'d>
impl<'d> Write for BufferedUartTx<'d>
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> Write for BufferedUartTx<'d>
impl<'d> Write for BufferedUartTx<'d>
Auto Trait Implementations§
impl<'d> Freeze for BufferedUartTx<'d>
impl<'d> !RefUnwindSafe for BufferedUartTx<'d>
impl<'d> Send for BufferedUartTx<'d>
impl<'d> Sync for BufferedUartTx<'d>
impl<'d> Unpin for BufferedUartTx<'d>
impl<'d> !UnwindSafe for BufferedUartTx<'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