pub async fn write_sync(filename: &Path, data: &[u8]) -> Result<()>
Expand description
Write a Vec<u8>
to a binary file. If using within the web browser
environment, a local storage key with the name of the file
will be used and the data will be hex-encoded.