pub fn write<M: Send + 'static>(
path: impl Into<PathBuf>,
data: Vec<u8>,
sender: &ChannelSender<M>,
done: impl FnOnce(Result<()>) -> M + Send + 'static,
)Expand description
Create or replace a small file with data, whole or not at all.