Packager

Trait Packager 

Source
pub trait Packager {
    // Required method
    fn write_file(&mut self, path: &Path, bytes: Vec<u8>) -> Result<(), Error>;

    // Provided method
    fn flush(self)
       where Self: Sized { ... }
}
Expand description

A type which handles the processed output and stores/packages it to the destination.

Required Methods§

Source

fn write_file(&mut self, path: &Path, bytes: Vec<u8>) -> Result<(), Error>

Provided Methods§

Source

fn flush(self)
where Self: Sized,

Called when writing is finished. Optional to implement.

Implementors§