pub enum FleetWorkerEventPayload {
Show 15 variants
Queued,
Leased {
lease_expires_at: Option<String>,
},
Starting,
Running,
ModelWait {
model: Option<String>,
},
RunningTool {
tool: String,
call_id: Option<String>,
},
Heartbeat {
cpu_percent: Option<f32>,
memory_mb: Option<u64>,
},
Artifact(FleetArtifactRef),
Completed {
exit_code: Option<i32>,
summary: Option<String>,
},
Failed {
reason: String,
recoverable: bool,
},
Cancelled {
cancelled_by: Option<String>,
},
Interrupted {
signal: Option<String>,
},
Stale {
last_heartbeat_at: Option<String>,
},
Restarted {
restart_count: u32,
},
Escalated {
channel: String,
alert_id: Option<String>,
},
}Expand description
Union of all worker event payloads.
Variants§
Queued
Leased
Starting
Running
ModelWait
RunningTool
Heartbeat
Artifact(FleetArtifactRef)
Completed
Failed
Cancelled
Interrupted
Stale
Restarted
Escalated
Trait Implementations§
Source§impl Clone for FleetWorkerEventPayload
impl Clone for FleetWorkerEventPayload
Source§fn clone(&self) -> FleetWorkerEventPayload
fn clone(&self) -> FleetWorkerEventPayload
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 FleetWorkerEventPayload
impl Debug for FleetWorkerEventPayload
Source§impl<'de> Deserialize<'de> for FleetWorkerEventPayload
impl<'de> Deserialize<'de> for FleetWorkerEventPayload
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 FleetWorkerEventPayload
impl RefUnwindSafe for FleetWorkerEventPayload
impl Send for FleetWorkerEventPayload
impl Sync for FleetWorkerEventPayload
impl Unpin for FleetWorkerEventPayload
impl UnsafeUnpin for FleetWorkerEventPayload
impl UnwindSafe for FleetWorkerEventPayload
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