pub enum OperationEvent {
Started {
operation_id: String,
agent_id: String,
resource_type: String,
scope: String,
description: String,
},
Heartbeat {
operation_id: String,
agent_id: String,
status: String,
elapsed_secs: u64,
},
Completed {
operation_id: String,
agent_id: String,
resource_type: String,
scope: String,
duration_secs: u64,
success: bool,
summary: String,
},
Stale {
operation_id: String,
agent_id: String,
resource_type: String,
scope: String,
last_heartbeat_secs_ago: u64,
},
ProcessTerminated {
operation_id: String,
agent_id: String,
process_id: u32,
exit_status: Option<i32>,
},
}Expand description
Events emitted by the operation tracker
Variants§
Started
Operation started.
Fields
Heartbeat
Heartbeat received with status update.
Fields
Completed
Operation completed.
Fields
Stale
Operation detected as stale (no heartbeats).
Fields
ProcessTerminated
Process attached to operation terminated.
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 (const: unstable) · 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<'de> Deserialize<'de> for OperationEvent
impl<'de> Deserialize<'de> for OperationEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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