pub struct OperationEvent {
pub operation: Operation,
pub phase: OperationEventPhase,
pub shell: Shell,
pub program_name: String,
pub trace_id: u64,
pub target_path: Option<PathBuf>,
pub error_code: Option<&'static str>,
pub retryable: bool,
pub duration_ms: Option<u128>,
}Expand description
Structured event emitted for operation-level observability hooks.
Fields§
§operation: OperationOperation being executed.
phase: OperationEventPhaseEvent lifecycle phase.
shell: ShellTarget shell.
program_name: StringRequested program name.
trace_id: u64Scoped operation identifier visible in structured failures.
target_path: Option<PathBuf>Primary completion path involved in the operation, when available.
error_code: Option<&'static str>Stable machine-readable code when the operation ended in failure.
retryable: boolWhether a retry is expected to help for this failure.
duration_ms: Option<u128>Elapsed duration in milliseconds from operation start for terminal phases.
This field is omitted for Started events and populated for Succeeded /
Failed events.
Trait Implementations§
Source§impl Clone for OperationEvent
impl Clone for OperationEvent
Source§fn clone(&self) -> OperationEvent
fn clone(&self) -> OperationEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationEvent
impl Debug for OperationEvent
Source§impl PartialEq for OperationEvent
impl PartialEq for OperationEvent
impl Eq for OperationEvent
impl StructuralPartialEq for OperationEvent
Auto Trait Implementations§
impl Freeze for OperationEvent
impl RefUnwindSafe for OperationEvent
impl Send for OperationEvent
impl Sync for OperationEvent
impl Unpin for OperationEvent
impl UnsafeUnpin for OperationEvent
impl UnwindSafe for OperationEvent
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