pub struct LoggingHook { /* private fields */ }Expand description
Simple logging hook for demonstration
Implementations§
Trait Implementations§
Source§impl Default for LoggingHook
impl Default for LoggingHook
Source§impl ExecutionHook for LoggingHook
impl ExecutionHook for LoggingHook
Source§fn on_phase_change(&mut self, phase: ExecutionPhase, _state: &ExecutionState)
fn on_phase_change(&mut self, phase: ExecutionPhase, _state: &ExecutionState)
Called when execution phase changes
Source§fn on_node_start(&mut self, node_idx: usize, _state: &ExecutionState)
fn on_node_start(&mut self, node_idx: usize, _state: &ExecutionState)
Called when a node starts executing
Source§fn on_node_complete(
&mut self,
node_idx: usize,
duration: Duration,
_state: &ExecutionState,
)
fn on_node_complete( &mut self, node_idx: usize, duration: Duration, _state: &ExecutionState, )
Called when a node completes
Source§fn on_error(&mut self, error: &str, _state: &ExecutionState)
fn on_error(&mut self, error: &str, _state: &ExecutionState)
Called when an error occurs
Source§fn on_complete(&mut self, state: &ExecutionState)
fn on_complete(&mut self, state: &ExecutionState)
Called when execution completes
Auto Trait Implementations§
impl Freeze for LoggingHook
impl RefUnwindSafe for LoggingHook
impl Send for LoggingHook
impl Sync for LoggingHook
impl Unpin for LoggingHook
impl UnwindSafe for LoggingHook
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