fn new<CE, SE>(circuit_error_handler: CE, scheduler_error_handler: SE) -> Self
    where
        CE: Fn(&CircuitEvent, &TraceError) + 'static,
        SE: Fn(&SchedulerEvent, &TraceError) + 'static,
    {
        Self {
            circuit: CircuitGraph::new(),
            current_scope: GlobalNodeId::from_path(&[]),
            region_stack: vec![RegionId::root()],
            state: vec![CircuitState::new()],
            circuit_error_handler: Box::new(circuit_error_handler),
            scheduler_error_handler: Box::new(scheduler_error_handler),
        }
    }
/// Create a new trace monitor with user-provided event handlers.
Create a new trace monitor with user-provided event handlers.
Create a new trace monitor with user - provided event handlers .
fn new<CE, SE>(circuit_error_handler: CE, scheduler_error_handler: SE) -> Self
    where
        CE: Fn(&CircuitEvent, &TraceError) + 'static,
        SE: Fn(&SchedulerEvent, &TraceError) + 'static,
    {
        Self {
            circuit: CircuitGraph::new(),
            current_scope: GlobalNodeId::from_path(&[]),
            region_stack: vec![RegionId::root()],
            state: vec![CircuitState::new()],
            circuit_error_handler: Box::new(circuit_error_handler),
            scheduler_error_handler: Box::new(scheduler_error_handler),
        }
    }
fn new < CE , SE > ( circuit_error_handler : CE , scheduler_error_handler : SE ) -> Self where CE : Fn ( & CircuitEvent , & TraceError ) + ' static , SE : Fn ( & SchedulerEvent , & TraceError ) + ' static , { Self { circuit : CircuitGraph :: new ( ) , current_scope : GlobalNodeId :: from_path ( & [ ] ) , region_stack : vec ! [ RegionId root ( ) ] , state : vec ! [ CircuitState new ( ) ] , circuit_error_handler : Box :: new ( circuit_error_handler ) , scheduler_error_handler : Box :: new ( scheduler_error_handler ) , } }
Create a new trace monitor with user-provided event handlers.
Create a new trace monitor with user - provided event handlers .
circuit_error_handler
CE
scheduler_error_handler
SE