pub struct EventHandlerFailure { /* private fields */ }Expand description
Metadata about a failed asynchronous event-handler invocation.
Event handlers may use unrelated error types, so this deliberately contains route metadata rather than the handler’s concrete error value. Reporters can use it for logging, metrics, and alerting without imposing a common application error type on every event route.
Implementations§
Source§impl EventHandlerFailure
impl EventHandlerFailure
Sourcepub const fn event_name(self) -> &'static str
pub const fn event_name(self) -> &'static str
The registered event type as written in its module manifest.
Sourcepub const fn handler_name(self) -> &'static str
pub const fn handler_name(self) -> &'static str
The registered handler path as written in its module manifest.
Trait Implementations§
Source§impl Clone for EventHandlerFailure
impl Clone for EventHandlerFailure
Source§fn clone(&self) -> EventHandlerFailure
fn clone(&self) -> EventHandlerFailure
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 moreimpl Copy for EventHandlerFailure
Source§impl Debug for EventHandlerFailure
impl Debug for EventHandlerFailure
impl Eq for EventHandlerFailure
Source§impl PartialEq for EventHandlerFailure
impl PartialEq for EventHandlerFailure
impl StructuralPartialEq for EventHandlerFailure
Auto Trait Implementations§
impl Freeze for EventHandlerFailure
impl RefUnwindSafe for EventHandlerFailure
impl Send for EventHandlerFailure
impl Sync for EventHandlerFailure
impl Unpin for EventHandlerFailure
impl UnsafeUnpin for EventHandlerFailure
impl UnwindSafe for EventHandlerFailure
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