pub async fn atomic_write<R>( target: impl AsRef<Path>, reader: R, ) -> Result<(), FsError>where R: AsyncRead + Unpin,
Stream reader into a temporary sibling file and atomically rename it over target.
reader
target