pub enum DispatchTraceEvent {
HookBefore {
invocation_index: usize,
hook_index: usize,
decision: TracedAction,
},
HookBeforeError {
invocation_index: usize,
hook_index: usize,
message: String,
},
HookCleanup {
invocation_index: usize,
hook_index: usize,
},
HookAfter {
invocation_index: usize,
hook_index: usize,
},
InvocationOutcome {
invocation_index: usize,
outcome: TracedOutcome,
},
}Expand description
One observable event within a dispatch trace. Events are pushed in order;
invocation_index and hook_index refer to positions in the slices passed
to
dispatch_tool_invocations_with_trace.
Variants§
HookBefore
A hook’s before_invocation returned a decision.
HookBeforeError
A hook’s before_invocation returned an error and aborted dispatch.
HookCleanup
A hook’s on_invocation_error was notified so it could release
resources reserved in before_invocation.
HookAfter
A hook’s after_invocation_with_outcome ran successfully.
InvocationOutcome
The invocation finished with a final outcome.
Trait Implementations§
Source§impl Clone for DispatchTraceEvent
impl Clone for DispatchTraceEvent
Source§fn clone(&self) -> DispatchTraceEvent
fn clone(&self) -> DispatchTraceEvent
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 DispatchTraceEvent
impl Debug for DispatchTraceEvent
Source§impl PartialEq for DispatchTraceEvent
impl PartialEq for DispatchTraceEvent
Source§fn eq(&self, other: &DispatchTraceEvent) -> bool
fn eq(&self, other: &DispatchTraceEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DispatchTraceEvent
Auto Trait Implementations§
impl Freeze for DispatchTraceEvent
impl RefUnwindSafe for DispatchTraceEvent
impl Send for DispatchTraceEvent
impl Sync for DispatchTraceEvent
impl Unpin for DispatchTraceEvent
impl UnsafeUnpin for DispatchTraceEvent
impl UnwindSafe for DispatchTraceEvent
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