#[non_exhaustive]pub struct WorkerFailureMetadata {
pub jobs: Vec<FailedJobMetadata>,
pub queue: String,
pub job_name: String,
pub worker_name: String,
pub batch_size: usize,
pub will_retry: bool,
pub terminal: bool,
}Expand description
Execution metadata attached to a worker failure report.
Batch jobs retain their individual IDs, serialized arguments, and retry
states in Self::jobs. Job arguments can contain sensitive application
data; configure a custom reporter when they need to be filtered or omitted.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.jobs: Vec<FailedJobMetadata>Metadata for every job affected by this execution failure.
queue: StringThe queue key from which the jobs were dequeued.
job_name: StringThe registered job type name.
worker_name: StringThe concrete worker type name.
batch_size: usizeThe number of jobs processed by the failed execution.
will_retry: boolWhether at least one affected job will be retried.
terminal: boolWhether the failure is terminal for every affected job.
Trait Implementations§
Source§impl Clone for WorkerFailureMetadata
impl Clone for WorkerFailureMetadata
Source§fn clone(&self) -> WorkerFailureMetadata
fn clone(&self) -> WorkerFailureMetadata
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 WorkerFailureMetadata
impl Debug for WorkerFailureMetadata
impl Eq for WorkerFailureMetadata
Source§impl PartialEq for WorkerFailureMetadata
impl PartialEq for WorkerFailureMetadata
Source§impl Serialize for WorkerFailureMetadata
impl Serialize for WorkerFailureMetadata
impl StructuralPartialEq for WorkerFailureMetadata
Auto Trait Implementations§
impl Freeze for WorkerFailureMetadata
impl RefUnwindSafe for WorkerFailureMetadata
impl Send for WorkerFailureMetadata
impl Sync for WorkerFailureMetadata
impl Unpin for WorkerFailureMetadata
impl UnsafeUnpin for WorkerFailureMetadata
impl UnwindSafe for WorkerFailureMetadata
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.