pub struct UartTx<T: UartPeripheral> { /* private fields */ }Implementations§
Source§impl<TX: UartTxPeripheral> UartTx<TX>
impl<TX: UartTxPeripheral> UartTx<TX>
pub fn new(peripheral: TX, config: UartConfig) -> Self
Trait Implementations§
Source§impl<T: UartPeripheral> ErrorType for UartTx<T>
impl<T: UartPeripheral> ErrorType for UartTx<T>
Source§impl<T: UartPeripheral> SetConfig for UartTx<T>
impl<T: UartPeripheral> SetConfig for UartTx<T>
Source§type Config = UartConfig
type Config = UartConfig
The configuration type used by this driver.
Source§type ConfigError = ()
type ConfigError = ()
The error type that can occur if
set_config fails.Source§impl<T: UartPeripheral> Write for UartTx<T>
impl<T: UartPeripheral> Write for UartTx<T>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<(), Error>
fn flush(&mut self) -> Result<(), Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
Auto Trait Implementations§
impl<T> Freeze for UartTx<T>where
T: Freeze,
impl<T> RefUnwindSafe for UartTx<T>where
T: RefUnwindSafe,
impl<T> Send for UartTx<T>where
T: Send,
impl<T> Sync for UartTx<T>where
T: Sync,
impl<T> Unpin for UartTx<T>where
T: Unpin,
impl<T> UnsafeUnpin for UartTx<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for UartTx<T>where
T: UnwindSafe,
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