Skip to main content

write_bytes

Function write_bytes 

Source
pub async fn write_bytes(
    path: impl AsRef<Path>,
    bytes: &[u8],
) -> Result<(), FsError>
Expand description

Write a bounded caller-owned byte slice to a file, replacing its contents.