pub enum WidgetError {
Panicked {
widget_name: &'static str,
message: String,
},
InvalidState {
widget_name: &'static str,
detail: String,
},
RecoveryExhausted {
widget_name: &'static str,
attempts: u32,
},
}Expand description
Widget rendering errors.
Variants§
Panicked
A widget panicked during render (caught by error boundary).
InvalidState
Widget state is inconsistent and cannot be rendered.
RecoveryExhausted
Recovery attempts exhausted after repeated failures.
Trait Implementations§
Source§impl Debug for WidgetError
impl Debug for WidgetError
Source§impl Display for WidgetError
impl Display for WidgetError
Source§impl Error for WidgetError
impl Error for WidgetError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<WidgetError> for Error
impl From<WidgetError> for Error
Source§fn from(err: WidgetError) -> Self
fn from(err: WidgetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WidgetError
impl RefUnwindSafe for WidgetError
impl Send for WidgetError
impl Sync for WidgetError
impl Unpin for WidgetError
impl UnsafeUnpin for WidgetError
impl UnwindSafe for WidgetError
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