pub enum DegradationAction {
FallbackRender,
ReusePreviousLayout,
ErrorPlaceholder,
SkipFrame,
DropInput,
Shutdown,
}Expand description
What the runtime should do when an error occurs.
The runtime inspects this to decide whether to retry, fall back to a simpler rendering mode, or shut down gracefully.
Variants§
FallbackRender
Use fallback rendering (ASCII borders, no styling, etc.).
ReusePreviousLayout
Reuse the previous frame’s layout — do not recompute.
ErrorPlaceholder
Replace the widget with an error placeholder.
SkipFrame
Skip the current frame entirely.
DropInput
Drop the malformed input and continue processing.
Shutdown
The error is unrecoverable — shut down gracefully.
Trait Implementations§
Source§impl Clone for DegradationAction
impl Clone for DegradationAction
Source§fn clone(&self) -> DegradationAction
fn clone(&self) -> DegradationAction
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 DegradationAction
impl Debug for DegradationAction
Source§impl Display for DegradationAction
impl Display for DegradationAction
Source§impl PartialEq for DegradationAction
impl PartialEq for DegradationAction
impl Copy for DegradationAction
impl Eq for DegradationAction
impl StructuralPartialEq for DegradationAction
Auto Trait Implementations§
impl Freeze for DegradationAction
impl RefUnwindSafe for DegradationAction
impl Send for DegradationAction
impl Sync for DegradationAction
impl Unpin for DegradationAction
impl UnsafeUnpin for DegradationAction
impl UnwindSafe for DegradationAction
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.