pub struct DispatcherUnhandledExceptionFilterEventArgs<'a> { /* private fields */ }Expand description
Provides data for the Dispatcher::unhandled_exception_filter event.
Implementations§
Source§impl<'a> DispatcherUnhandledExceptionFilterEventArgs<'a>
impl<'a> DispatcherUnhandledExceptionFilterEventArgs<'a>
Sourcepub fn exception(&self) -> &(dyn Any + Send)
pub fn exception(&self) -> &(dyn Any + Send)
The panic payload that was raised while executing code by way of a dispatcher.
Sourcepub fn exception_message(&self) -> Option<&str>
pub fn exception_message(&self) -> Option<&str>
The panic message, when the payload is a string.
Sourcepub fn request_catch(&self) -> bool
pub fn request_catch(&self) -> bool
Whether the exception should be caught and the
unhandled_exception handlers called.
A filter handler can set this to false, which stops the exception
from being caught and handed to the unhandled_exception handlers.
pub fn set_request_catch(&self, value: bool)
Trait Implementations§
Source§impl DispatcherEventArgs for DispatcherUnhandledExceptionFilterEventArgs<'_>
impl DispatcherEventArgs for DispatcherUnhandledExceptionFilterEventArgs<'_>
Source§fn dispatcher(&self) -> &Arc<Dispatcher> ⓘ
fn dispatcher(&self) -> &Arc<Dispatcher> ⓘ
The dispatcher associated with this event.
Auto Trait Implementations§
impl<'a> !Freeze for DispatcherUnhandledExceptionFilterEventArgs<'a>
impl<'a> !RefUnwindSafe for DispatcherUnhandledExceptionFilterEventArgs<'a>
impl<'a> !Send for DispatcherUnhandledExceptionFilterEventArgs<'a>
impl<'a> !Sync for DispatcherUnhandledExceptionFilterEventArgs<'a>
impl<'a> !UnwindSafe for DispatcherUnhandledExceptionFilterEventArgs<'a>
impl<'a> Unpin for DispatcherUnhandledExceptionFilterEventArgs<'a>
impl<'a> UnsafeUnpin for DispatcherUnhandledExceptionFilterEventArgs<'a>
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> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more