pub struct ErrorContext { /* private fields */ }
Expand description
A context with information about suspended components
Implementations§
source§impl ErrorContext
impl ErrorContext
sourcepub fn errors(&self) -> Ref<'_, [CapturedError]>
pub fn errors(&self) -> Ref<'_, [CapturedError]>
Get all errors thrown from child components
sourcepub fn show(&self) -> Option<Result<VNode, RenderError>>
pub fn show(&self) -> Option<Result<VNode, RenderError>>
Get the Element from the first error that can be shown
sourcepub fn insert_error(&self, error: CapturedError)
pub fn insert_error(&self, error: CapturedError)
Push an error into this Error Boundary
sourcepub fn clear_errors(&self)
pub fn clear_errors(&self)
Clear all errors from this Error Boundary
Trait Implementations§
source§impl Clone for ErrorContext
impl Clone for ErrorContext
source§fn clone(&self) -> ErrorContext
fn clone(&self) -> ErrorContext
Returns a copy 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 ErrorContext
impl Debug for ErrorContext
source§impl PartialEq for ErrorContext
impl PartialEq for ErrorContext
Auto Trait Implementations§
impl Freeze for ErrorContext
impl !RefUnwindSafe for ErrorContext
impl !Send for ErrorContext
impl !Sync for ErrorContext
impl Unpin for ErrorContext
impl !UnwindSafe for ErrorContext
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.