Trait WriteSimple

Source
pub trait WriteSimple {
    type Error: Debug;

    // Required method
    fn write_all_simple(&mut self, buf: &[u8]) -> Result<(), Self::Error>;
}
Expand description

A simple write trait suitable for embedded devices.

Required Associated Types§

Source

type Error: Debug

The error type used by this reader.

Required Methods§

Source

fn write_all_simple(&mut self, buf: &[u8]) -> Result<(), Self::Error>

Write all the bytes in buf.

Upon returning an error, the number of bytes written is undefined.

Implementors§

Source§

impl<T> WriteSimple for T
where T: Write,