Trait DirectoryWrite

Source
pub trait DirectoryWrite {
    // Required method
    fn new_file(
        &self,
        path: &Path,
    ) -> Result<Box<dyn Write + Send + Sync + 'static>, Error>;
}
Expand description

A trait for writing artifacts that consist of multiple files organized in a directory.

Required Methods§

Source

fn new_file( &self, path: &Path, ) -> Result<Box<dyn Write + Send + Sync + 'static>, Error>

Create a new file within the directory. path must be a relative path with no parent segments.

Implementors§