Trait FileSystemPort

Source
pub trait FileSystemPort {
    // Required methods
    fn write(&self, instruction: &FileWriteInstruction) -> Result<(), Error>;
    fn read(&self, instruction: &FileReadInstruction) -> Result<Vec<u8>, Error>;
}
Expand description

Describes how template file creation should be handled.

Required Methods§

Source

fn write(&self, instruction: &FileWriteInstruction) -> Result<(), Error>

Writing to file implementation.

Source

fn read(&self, instruction: &FileReadInstruction) -> Result<Vec<u8>, Error>

Reading from a file implementation.

Implementors§