Writer

Trait Writer 

Source
pub trait Writer {
    // Required method
    fn write(&mut self, bytes: &[u8]) -> WriteResult;
}
Expand description

Generic writer

Required Methods§

Source

fn write(&mut self, bytes: &[u8]) -> WriteResult

Write all bytes from the given slice to the writer. This function must block until all bytes have been written.

Implementations on Foreign Types§

Source§

impl Writer for Vec<u8>

Source§

fn write(&mut self, bytes: &[u8]) -> WriteResult

Implementors§