pub enum RecoveryOption {
ContinueWithDefault(String),
RetryWith(String),
ShowCompletions,
Abort,
RestoreCheckpoint,
UseHistoryValue(usize),
}Expand description
Interactive error recovery options
Variants§
ContinueWithDefault(String)
Continue with a default or empty value
RetryWith(String)
Retry with a corrected expression
ShowCompletions
Show completion suggestions
Abort
Discard the failed expression
RestoreCheckpoint
Restore from previous checkpoint
UseHistoryValue(usize)
Use a specific value from history
Trait Implementations§
Source§impl Clone for RecoveryOption
impl Clone for RecoveryOption
Source§fn clone(&self) -> RecoveryOption
fn clone(&self) -> RecoveryOption
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RecoveryOption
impl RefUnwindSafe for RecoveryOption
impl Send for RecoveryOption
impl Sync for RecoveryOption
impl Unpin for RecoveryOption
impl UnwindSafe for RecoveryOption
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