Skip to main content

write

Function write 

Source
pub async fn write(
    path: impl AsRef<Path>,
    contents: impl AsRef<[u8]>,
) -> Result<()>
Expand description

Writes contents as the whole file at path, creating it or cutting it down first.