[][src]Trait stm32f7x7_hal::prelude::_embedded_hal_serial_Write

pub trait _embedded_hal_serial_Write<Word> {
    type Error;
    fn write(&mut self, word: Word) -> Result<(), Error<Self::Error>>;
fn flush(&mut self) -> Result<(), Error<Self::Error>>; }

Write half of a serial interface

Associated Types

type Error

Write error

Loading content...

Required methods

fn write(&mut self, word: Word) -> Result<(), Error<Self::Error>>

Writes a single word to the serial interface

fn flush(&mut self) -> Result<(), Error<Self::Error>>

Ensures that none of the previously written words are still buffered

Loading content...

Trait Implementations

impl<Word, Error> Write for dyn Write<Word, Error = Error> + 'static where
    Word: From<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

Implementors

impl Write<u8> for Tx<UART4>[src]

type Error = Error

impl Write<u8> for Tx<UART5>[src]

type Error = Error

impl Write<u8> for Tx<UART7>[src]

type Error = Error

impl Write<u8> for Tx<UART8>[src]

type Error = Error

impl Write<u8> for Tx<USART1>[src]

type Error = Error

impl Write<u8> for Tx<USART2>[src]

type Error = Error

impl Write<u8> for Tx<USART3>[src]

type Error = Error

impl Write<u8> for Tx<USART6>[src]

type Error = Error

impl<PINS> Write<u8> for Serial<UART4, PINS>[src]

type Error = Error

impl<PINS> Write<u8> for Serial<UART5, PINS>[src]

type Error = Error

impl<PINS> Write<u8> for Serial<UART7, PINS>[src]

type Error = Error

impl<PINS> Write<u8> for Serial<UART8, PINS>[src]

type Error = Error

impl<PINS> Write<u8> for Serial<USART1, PINS>[src]

type Error = Error

impl<PINS> Write<u8> for Serial<USART2, PINS>[src]

type Error = Error

impl<PINS> Write<u8> for Serial<USART3, PINS>[src]

type Error = Error

impl<PINS> Write<u8> for Serial<USART6, PINS>[src]

type Error = Error

Loading content...