Skip to main content

write

Function write 

pub async fn write(
    path: impl Into<PathBuf>,
    contents: Vec<u8>,
) -> Result<(), Error>
Expand description

Create or truncate path and write contents to it.

ยงErrors

As std::fs::write.