pub struct ProfilerHook { /* private fields */ }Expand description
Profiler hook for integration with ExecutionContext
Implementations§
Source§impl ProfilerHook
impl ProfilerHook
Trait Implementations§
Source§impl Default for ProfilerHook
impl Default for ProfilerHook
Source§impl ExecutionHook for ProfilerHook
impl ExecutionHook for ProfilerHook
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 ProfilerHook
impl RefUnwindSafe for ProfilerHook
impl Send for ProfilerHook
impl Sync for ProfilerHook
impl Unpin for ProfilerHook
impl UnwindSafe for ProfilerHook
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