pub struct JobCancelledEvent {
pub job_id: String,
pub trace_id: Option<String>,
pub worker_id: Option<String>,
pub attempt_count: Option<u32>,
pub status: Option<String>,
pub trace_ctx: Option<TraceCtx>,
pub attempt_id: Option<AttemptId>,
pub trial_id: Option<TrialId>,
}Expand description
Emitted when a job is cancelled.
Fields§
§job_id: String§trace_id: Option<String>👎Deprecated:
Use trace_ctx instead. Will be removed when all consumers migrate.
Deprecated — Phase status: compatibility / migration-only.
Use trace_ctx instead.
Removal condition: removed when all event consumers migrate to TraceCtx.
worker_id: Option<String>§attempt_count: Option<u32>👎Deprecated:
Use attempt_id/trial_id instead. Will be removed when all consumers migrate.
Deprecated — Phase status: compatibility / migration-only.
Use attempt_id / trial_id instead.
Removal condition: removed when all event consumers migrate to AttemptId/TrialId.
status: Option<String>§trace_ctx: Option<TraceCtx>Canonical trace context (replaces trace_id).
attempt_id: Option<AttemptId>Canonical attempt identity — one per re-enqueue.
trial_id: Option<TrialId>Canonical trial identity — one per concrete execution.
Trait Implementations§
Source§impl Clone for JobCancelledEvent
impl Clone for JobCancelledEvent
Source§fn clone(&self) -> JobCancelledEvent
fn clone(&self) -> JobCancelledEvent
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 JobCancelledEvent
impl Debug for JobCancelledEvent
Source§impl<'de> Deserialize<'de> for JobCancelledEvent
impl<'de> Deserialize<'de> for JobCancelledEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<JobCancelledEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<JobCancelledEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for JobCancelledEvent
impl Serialize for JobCancelledEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for JobCancelledEvent
impl RefUnwindSafe for JobCancelledEvent
impl Send for JobCancelledEvent
impl Sync for JobCancelledEvent
impl Unpin for JobCancelledEvent
impl UnsafeUnpin for JobCancelledEvent
impl UnwindSafe for JobCancelledEvent
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