Struct diffusion::FileWriter [] [src]

pub struct FileWriter<T> where T: Write {
    // some fields omitted
}

is a writer for file. It can only start to write a new file but not append to an existing file.

Methods

impl<T> FileWriter<T> where T: Write

fn new(file: T) -> Result<FileWriter<T>>

returns a new file writer instance. It returns error if there is IO error during the process.

Trait Implementations

impl<T> Writer for FileWriter<T> where T: Write

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

Derived Implementations

impl<T: Debug> Debug for FileWriter<T> where T: Write

fn fmt(&self, __arg_0: &mut Formatter) -> Result