pub async fn write<D>(file: &FileProxy, data: D) -> Result<(), WriteError>where D: AsRef<[u8]>,
Writes the given data into the given file.