Struct stm32f042_hal::serial::Tx
[−]
[src]
pub struct Tx<USART> { /* fields omitted */ }
Serial transmitter
Trait Implementations
impl Write<u8> for Tx<USART1>
[src]
type Error = !
Write error
fn flush(&mut self) -> Result<(), !>
[src]
Ensures that none of the previously written words are still buffered
fn write(&mut self, byte: u8) -> Result<(), !>
[src]
Writes a single word to the serial interface
impl Write<u8> for Tx<USART2>
[src]
type Error = !
Write error
fn flush(&mut self) -> Result<(), !>
[src]
Ensures that none of the previously written words are still buffered
fn write(&mut self, byte: u8) -> Result<(), !>
[src]
Writes a single word to the serial interface
impl<USART> Write for Tx<USART> where
Tx<USART>: Write<u8>,
[src]
Tx<USART>: Write<u8>,
fn write_str(&mut self, s: &str) -> Result
[src]
Writes a slice of bytes into this writer, returning whether the write succeeded. Read more
fn write_char(&mut self, c: char) -> Result<(), Error>
1.1.0[src]
Writes a [char
] into this writer, returning whether the write succeeded. Read more
fn write_fmt(&mut self, args: Arguments) -> Result<(), Error>
1.0.0[src]
Glue for usage of the [write!
] macro with implementors of this trait. Read more