pub trait _ufmt_uWrite {
    type Error;

    // Required method
    fn write_str(&mut self, s: &str) -> Result<(), Self::Error>;

    // Provided method
    fn write_char(&mut self, c: char) -> Result<(), Self::Error> { ... }
}
Expand description

A collection of methods that are required / used to format a message into a stream.

Required Associated Types§

source

type Error

The error associated to this writer

Required Methods§

source

fn write_str(&mut self, s: &str) -> Result<(), Self::Error>

Writes a string slice into this writer, returning whether the write succeeded.

This method can only succeed if the entire string slice was successfully written, and this method will not return until all data has been written or an error occurs.

Provided Methods§

source

fn write_char(&mut self, c: char) -> Result<(), Self::Error>

Writes a char into this writer, returning whether the write succeeded.

A single char may be encoded as more than one byte. This method can only succeed if the entire byte sequence was successfully written, and this method will not return until all data has been written or an error occurs.

Implementations on Foreign Types§

source§

impl<H, USART, RX, TX, CLOCK> uWrite for Usart<H, USART, RX, TX, CLOCK>
where USART: UsartOps<H, RX, TX>,

§

type Error = Infallible

source§

fn write_str( &mut self, s: &str ) -> Result<(), <Usart<H, USART, RX, TX, CLOCK> as uWrite>::Error>

source§

impl<H, USART, RX, TX, CLOCK> uWrite for UsartWriter<H, USART, RX, TX, CLOCK>
where USART: UsartOps<H, RX, TX>,

§

type Error = Infallible

source§

fn write_str( &mut self, s: &str ) -> Result<(), <UsartWriter<H, USART, RX, TX, CLOCK> as uWrite>::Error>

Implementors§