pub enum ErrorBoundaryPhase {
Healthy,
Caught(String),
}Expand description
The phase of an ErrorBoundary.
Healthy— no child render has thrown yet. Render the child normally.Caught(String)— a child render threw; the message is for debugging. Render the fallback.
Variants§
Healthy
No child render has thrown.
Caught(String)
A child render threw; the message is for debugging.
Trait Implementations§
Source§impl Clone for ErrorBoundaryPhase
impl Clone for ErrorBoundaryPhase
Source§fn clone(&self) -> ErrorBoundaryPhase
fn clone(&self) -> ErrorBoundaryPhase
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ErrorBoundaryPhase
impl Debug for ErrorBoundaryPhase
Source§impl Default for ErrorBoundaryPhase
impl Default for ErrorBoundaryPhase
Source§fn default() -> ErrorBoundaryPhase
fn default() -> ErrorBoundaryPhase
Returns the “default value” for a type. Read more
Source§impl PartialEq for ErrorBoundaryPhase
Equality comparison for ErrorBoundaryPhase.
impl PartialEq for ErrorBoundaryPhase
Equality comparison for ErrorBoundaryPhase.
Auto Trait Implementations§
impl Freeze for ErrorBoundaryPhase
impl RefUnwindSafe for ErrorBoundaryPhase
impl Send for ErrorBoundaryPhase
impl Sync for ErrorBoundaryPhase
impl Unpin for ErrorBoundaryPhase
impl UnsafeUnpin for ErrorBoundaryPhase
impl UnwindSafe for ErrorBoundaryPhase
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