pub struct FallbackWidget { /* private fields */ }Expand description
A standalone fallback widget for rendering error indicators.
Can be used independently of ErrorBoundary when you need to
display an error state in a widget area.
Implementations§
Source§impl FallbackWidget
impl FallbackWidget
Sourcepub fn new(error: CapturedError) -> Self
pub fn new(error: CapturedError) -> Self
Create a new fallback widget for the given error.
Sourcepub fn from_message(
message: impl Into<String>,
widget_name: &'static str,
) -> Self
pub fn from_message( message: impl Into<String>, widget_name: &'static str, ) -> Self
Create a fallback with a simple message and widget name.
Sourcepub fn without_retry_hint(self) -> Self
pub fn without_retry_hint(self) -> Self
Disable the retry hint.
Trait Implementations§
Source§impl Clone for FallbackWidget
impl Clone for FallbackWidget
Source§fn clone(&self) -> FallbackWidget
fn clone(&self) -> FallbackWidget
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 FallbackWidget
impl Debug for FallbackWidget
Auto Trait Implementations§
impl Freeze for FallbackWidget
impl RefUnwindSafe for FallbackWidget
impl Send for FallbackWidget
impl Sync for FallbackWidget
impl Unpin for FallbackWidget
impl UnwindSafe for FallbackWidget
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