Skip to main content

WritePort

Trait WritePort 

Source
pub trait WritePort {
    // Required methods
    fn write_file(&self, path: &Utf8Path, contents: &[u8]) -> Result<()>;
    fn create_dir_all(&self, path: &Utf8Path) -> Result<()>;
}
Expand description

File-system write operations.

Required Methods§

Source

fn write_file(&self, path: &Utf8Path, contents: &[u8]) -> Result<()>

Source

fn create_dir_all(&self, path: &Utf8Path) -> Result<()>

Implementors§

Source§

impl WritePort for FsWritePort

Available on crate feature fs only.