Trait diffusion::Writer [] [src]

pub trait Writer {
    fn write(&mut self, buf: &[u8]) -> Result<()>;
}

is the general trait for all writers.

Required Methods

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

returns Ok(()) if write is successful.

Implementors