pub trait WritePort {
// Required methods
fn write_file(&self, path: &Utf8Path, contents: &[u8]) -> Result<(), Error>;
fn create_dir_all(&self, path: &Utf8Path) -> Result<(), Error>;
}Expand description
File-system write operations.
Required Methods§
fn write_file(&self, path: &Utf8Path, contents: &[u8]) -> Result<(), Error>
fn create_dir_all(&self, path: &Utf8Path) -> Result<(), Error>
Implementors§
impl WritePort for FsWritePort
Available on crate feature
fs only.