pub enum PanicRecoveryStrategy {
Continue,
Reset,
ShowError,
Quit,
}Expand description
Strategy for handling panics in Model methods
Variants§
Continue
Continue with current state (default)
Reset
Reset model to initial state
ShowError
Show error screen
Quit
Quit the application
Trait Implementations§
Source§impl Clone for PanicRecoveryStrategy
impl Clone for PanicRecoveryStrategy
Source§fn clone(&self) -> PanicRecoveryStrategy
fn clone(&self) -> PanicRecoveryStrategy
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 moreSource§impl Debug for PanicRecoveryStrategy
impl Debug for PanicRecoveryStrategy
Source§impl Default for PanicRecoveryStrategy
impl Default for PanicRecoveryStrategy
impl Copy for PanicRecoveryStrategy
Auto Trait Implementations§
impl Freeze for PanicRecoveryStrategy
impl RefUnwindSafe for PanicRecoveryStrategy
impl Send for PanicRecoveryStrategy
impl Sync for PanicRecoveryStrategy
impl Unpin for PanicRecoveryStrategy
impl UnwindSafe for PanicRecoveryStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Inspectable for T
impl<T> Inspectable for T
Source§fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
fn inspect_if(self, condition: bool, label: &str) -> Selfwhere
Self: Debug,
Conditionally inspect this value
Source§fn inspect_with<F>(self, label: &str, f: F) -> Self
fn inspect_with<F>(self, label: &str, f: F) -> Self
Inspect with a custom formatter