pub fn save_bincode<T: Serialize>(path: &Path, data: &T) -> Result<()>
Save a serializable struct to a bincode file (atomically via rename)