pub struct WalEvent {
pub seq: u64,
pub ts: u64,
pub event_type: WalEventType,
pub job_id: String,
pub capability: Option<String>,
pub output: Option<Value>,
pub error: Option<String>,
pub telemetry_before: Option<Telemetry>,
pub telemetry_after: Option<Telemetry>,
pub process_before: Option<ProcessSummary>,
pub process_after: Option<ProcessSummary>,
}Expand description
A single WAL event record.
Events are appended sequentially and identified by seq. The ts field
is a Unix timestamp in seconds. Optional fields (capability, output,
error) are skipped during serialization when None.
Fields§
§seq: u64Sequence number (monotonically increasing within a writer session).
ts: u64Unix timestamp (seconds) when the event occurred.
event_type: WalEventTypeType of the event (job lifecycle stage).
job_id: StringThe job ID this event relates to.
capability: Option<String>Capability name, if applicable.
output: Option<Value>Output data from the capability, if applicable.
error: Option<String>Error message, if the event represents a failure.
telemetry_before: Option<Telemetry>Hardware telemetry snapshot before execution.
telemetry_after: Option<Telemetry>Hardware telemetry snapshot after execution.
process_before: Option<ProcessSummary>Process summary before execution.
process_after: Option<ProcessSummary>Process summary after execution.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for WalEvent
impl<'de> Deserialize<'de> for WalEvent
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 WalEvent
impl RefUnwindSafe for WalEvent
impl Send for WalEvent
impl Sync for WalEvent
impl Unpin for WalEvent
impl UnsafeUnpin for WalEvent
impl UnwindSafe for WalEvent
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