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§
fn write_file(&self, path: &Utf8Path, contents: &[u8]) -> Result<()>
fn create_dir_all(&self, path: &Utf8Path) -> Result<()>
Implementors§
impl WritePort for FsWritePort
Available on crate feature
fs only.