Struct nrf5340_app_hal::uarte::UarteTx
source · [−]pub struct UarteTx<T> where
T: Instance, { /* private fields */ }
Expand description
Interface for the TX part of a UART instance that can be used independently of the RX part.
Trait Implementations
sourceimpl<T> Write for UarteTx<T> where
T: Instance,
impl<T> Write for UarteTx<T> where
T: Instance,
sourceimpl<T> Write<u8> for UarteTx<T> where
T: Instance,
impl<T> Write<u8> for UarteTx<T> where
T: Instance,
sourcepub fn write(
&mut self,
b: u8
) -> Result<(), Error<<UarteTx<T> as Write<u8>>::Error>>
pub fn write(
&mut self,
b: u8
) -> Result<(), Error<<UarteTx<T> as Write<u8>>::Error>>
Write a single byte to the internal buffer. Returns nb::Error::WouldBlock if buffer is full.
impl<T> Default<u8> for UarteTx<T> where
T: Instance,
Auto Trait Implementations
impl<T> RefUnwindSafe for UarteTx<T> where
T: RefUnwindSafe,
impl<T> Send for UarteTx<T> where
T: Send,
impl<T> Sync for UarteTx<T> where
T: Sync,
impl<T> Unpin for UarteTx<T> where
T: Unpin,
impl<T> !UnwindSafe for UarteTx<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more