pub fn durable_rename(
source: &Path,
destination: &Path,
mode: DurableRenameMode,
) -> Result<()>Expand description
Publishes a synced temporary file under a same-directory destination and does not return until the rename metadata is durably flushed.
ยงErrors
Returns an I/O error when paths are not in the same directory, publication
or durability fails, the destination exists in DurableRenameMode::NoReplace
mode, or the target platform has no proven implementation.