pub trait TracePort: Send + Sync {
// Required methods
fn task_registered(&self, event: TaskRegistered);
fn task_completed(&self, event: TaskCompleted);
fn task_failed(&self, event: TaskFailed);
}Expand description
The cross-cutting trace port.
Adapters implement this to ship events to AgilePlus, Tracera, an in-memory
recording double, or a fan-out multiplexer. The port is defined here in
core so that DispatchService can emit events without depending on any
adapter crate.
Required Methods§
Sourcefn task_registered(&self, event: TaskRegistered)
fn task_registered(&self, event: TaskRegistered)
Called once when a task is accepted into the system.
Sourcefn task_completed(&self, event: TaskCompleted)
fn task_completed(&self, event: TaskCompleted)
Called once when a task run concludes successfully.
Sourcefn task_failed(&self, event: TaskFailed)
fn task_failed(&self, event: TaskFailed)
Called once when a task run concludes with a failure.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".