[][src]Struct stm32f072b_disco::serial::Tx

pub struct Tx<USART> { /* fields omitted */ }

Serial transmitter

Trait Implementations

impl<USART> Send for Tx<USART>[src]

impl<USART> Write for Tx<USART> where
    Tx<USART>: Write<u8>, 
[src]

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

impl<USART> Write<u8> for Tx<USART> where
    USART: Deref<Target = RegisterBlock>, 
[src]

type Error = Void

Write error

fn flush(&mut self) -> Result<(), Error<<Tx<USART> as Write<u8>>::Error>>[src]

Ensures that none of the previously written words are still buffered

fn write(
    &mut self,
    byte: u8
) -> Result<(), Error<<Tx<USART> as Write<u8>>::Error>>
[src]

Tries to write a byte to the uart Fails if the transmit buffer is full

Auto Trait Implementations

impl<USART> !Sync for Tx<USART>

Blanket Implementations

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same for T

type Output = T

Should always be Self