Trait Write

Source
pub trait Write<Error> {
    // Required method
    fn write(&mut self, buf: &[u8]) -> Result<(), Error>;
}
Expand description

IO Write type with an error parameter

Required Methods§

Source

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

Write bytes from the buffer

§Errors

Returns an error if an IO error occurs.

Implementations on Foreign Types§

Source§

impl Write<Infallible> for Vec<u8>

Source§

fn write(&mut self, buf: &[u8]) -> Result<(), Infallible>

Implementors§

Source§

impl<W: Write> Write<Error> for W