pub enum RecoveryFile {
UseIfExists,
Ignore,
Require,
}
Expand description
Determines recovery behaviour for Driver::recovery
.
Typically you dont want to always recover from the last checkpoint file, only in cases where the iterative process was terminated or crashed. This entails having a recovery file location different to the checkpoint location, and some manual process to move/rename files from where they are written, to the recovery path location.
Item | Description |
---|---|
RecoveryFile::Ignore | Never recover from a checkpoint file. |
RecoveryFile::Require | Checkpoint file must exist, error if missing. Probably useful only if set from a command line option or configuration. Used if the user manually wants to move a checkpoint file into the specified recovery file locatiton. |
RecoveryFile::UseIfExists | Recover from checkpoint if the file exists, otherwise solve afresh. Perhaps a sensible default, but susceptible to typo’s in recovery filename, if the checkpoint file was manually moved/renamed. |
Variants§
Trait Implementations§
Source§impl Clone for RecoveryFile
impl Clone for RecoveryFile
Source§fn clone(&self) -> RecoveryFile
fn clone(&self) -> RecoveryFile
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RecoveryFile
impl Debug for RecoveryFile
Source§impl Hash for RecoveryFile
impl Hash for RecoveryFile
Source§impl PartialEq for RecoveryFile
impl PartialEq for RecoveryFile
impl StructuralPartialEq for RecoveryFile
Auto Trait Implementations§
impl Freeze for RecoveryFile
impl RefUnwindSafe for RecoveryFile
impl Send for RecoveryFile
impl Sync for RecoveryFile
impl Unpin for RecoveryFile
impl UnwindSafe for RecoveryFile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more