[−][src]Trait arduino_mkrzero::prelude::_embedded_hal_serial_Write
Write half of a serial interface
Associated Types
type Error
Write error
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
Trait Implementations
impl<Word, Error> Write for dyn Write<Word, Error = Error> + 'static where
Word: From<u8>,
[src]
Word: From<u8>,
fn write_str(&mut self, s: &str) -> Result<(), Error>
[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<RX, TX, RTS, CTS> Write<u8> for UART0<RX, TX, RTS, CTS>
[src]
type Error = ()
fn write(
&mut self,
word: u8
) -> Result<(), Error<<UART0<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self,
word: u8
) -> Result<(), Error<<UART0<RX, TX, RTS, CTS> as Write<u8>>::Error>>
fn flush(
&mut self
) -> Result<(), Error<<UART0<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<UART0<RX, TX, RTS, CTS> as Write<u8>>::Error>>
impl<RX, TX, RTS, CTS> Write<u8> for UART1<RX, TX, RTS, CTS>
[src]
type Error = ()
fn write(
&mut self,
word: u8
) -> Result<(), Error<<UART1<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self,
word: u8
) -> Result<(), Error<<UART1<RX, TX, RTS, CTS> as Write<u8>>::Error>>
fn flush(
&mut self
) -> Result<(), Error<<UART1<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<UART1<RX, TX, RTS, CTS> as Write<u8>>::Error>>
impl<RX, TX, RTS, CTS> Write<u8> for UART2<RX, TX, RTS, CTS>
[src]
type Error = ()
fn write(
&mut self,
word: u8
) -> Result<(), Error<<UART2<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self,
word: u8
) -> Result<(), Error<<UART2<RX, TX, RTS, CTS> as Write<u8>>::Error>>
fn flush(
&mut self
) -> Result<(), Error<<UART2<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<UART2<RX, TX, RTS, CTS> as Write<u8>>::Error>>
impl<RX, TX, RTS, CTS> Write<u8> for UART3<RX, TX, RTS, CTS>
[src]
type Error = ()
fn write(
&mut self,
word: u8
) -> Result<(), Error<<UART3<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self,
word: u8
) -> Result<(), Error<<UART3<RX, TX, RTS, CTS> as Write<u8>>::Error>>
fn flush(
&mut self
) -> Result<(), Error<<UART3<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<UART3<RX, TX, RTS, CTS> as Write<u8>>::Error>>
impl<RX, TX, RTS, CTS> Write<u8> for UART4<RX, TX, RTS, CTS>
[src]
type Error = ()
fn write(
&mut self,
word: u8
) -> Result<(), Error<<UART4<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self,
word: u8
) -> Result<(), Error<<UART4<RX, TX, RTS, CTS> as Write<u8>>::Error>>
fn flush(
&mut self
) -> Result<(), Error<<UART4<RX, TX, RTS, CTS> as Write<u8>>::Error>>
[src]
&mut self
) -> Result<(), Error<<UART4<RX, TX, RTS, CTS> as Write<u8>>::Error>>