persist_with_retry

Function persist_with_retry 

Source
pub async fn persist_with_retry(
    from: NamedTempFile,
    to: impl AsRef<Path>,
) -> Result<(), Error>
Expand description

Persist a NamedTempFile, retrying (on Windows) if it fails due to transient operating system errors, in a synchronous context.