pub struct HookExecutionResult {
pub hook: HookPoint,
pub plugins_executed: usize,
pub total_duration: Duration,
pub plugin_durations: HashMap<String, Duration>,
pub errors: Vec<(String, String)>,
}Expand description
Hook execution result with timing information
Fields§
§hook: HookPointHook point that was executed
plugins_executed: usizeNumber of plugins executed
total_duration: DurationTotal execution time
plugin_durations: HashMap<String, Duration>Individual plugin execution times
errors: Vec<(String, String)>Any errors that occurred
Implementations§
Source§impl HookExecutionResult
impl HookExecutionResult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if the execution was successful
Sourcepub fn average_duration(&self) -> Duration
pub fn average_duration(&self) -> Duration
Get the average execution time per plugin
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HookExecutionResult
impl RefUnwindSafe for HookExecutionResult
impl Send for HookExecutionResult
impl Sync for HookExecutionResult
impl Unpin for HookExecutionResult
impl UnwindSafe for HookExecutionResult
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