pub enum SchedulerEvent {
StateLoaded {
job_id: String,
trigger_count: u32,
next_run_at: Option<DateTime<Utc>>,
source: StateLoadSource,
},
StateRepaired {
job_id: String,
trigger_count: u32,
previous_next_run_at: Option<DateTime<Utc>>,
repaired_next_run_at: Option<DateTime<Utc>>,
},
TriggerEmitted {
job_id: String,
scheduled_at: DateTime<Utc>,
catch_up: bool,
trigger_count: u32,
},
RunCompleted {
job_id: String,
scheduled_at: DateTime<Utc>,
catch_up: bool,
trigger_count: u32,
status: RunStatus,
error: Option<String>,
},
ExecutionGuardContended {
job_id: String,
scheduled_at: DateTime<Utc>,
catch_up: bool,
trigger_count: u32,
},
ExecutionGuardLost {
job_id: String,
scheduled_at: DateTime<Utc>,
catch_up: bool,
trigger_count: u32,
},
ExecutionGuardReleaseFailed {
job_id: String,
scheduled_at: DateTime<Utc>,
catch_up: bool,
trigger_count: u32,
error: String,
},
StoreDegraded {
job_id: String,
operation: StoreOperation,
error: String,
},
TerminalStateDeleted {
job_id: String,
trigger_count: u32,
},
SchedulerStopped {
job_id: String,
trigger_count: u32,
reason: SchedulerStopReason,
},
}Variants§
StateLoaded
StateRepaired
Fields
TriggerEmitted
RunCompleted
Fields
ExecutionGuardContended
ExecutionGuardLost
ExecutionGuardReleaseFailed
StoreDegraded
TerminalStateDeleted
SchedulerStopped
Trait Implementations§
Source§impl Clone for SchedulerEvent
impl Clone for SchedulerEvent
Source§fn clone(&self) -> SchedulerEvent
fn clone(&self) -> SchedulerEvent
Returns a duplicate of the value. Read more
1.0.0 · 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 SchedulerEvent
impl Debug for SchedulerEvent
Source§impl PartialEq for SchedulerEvent
impl PartialEq for SchedulerEvent
impl Eq for SchedulerEvent
impl StructuralPartialEq for SchedulerEvent
Auto Trait Implementations§
impl Freeze for SchedulerEvent
impl RefUnwindSafe for SchedulerEvent
impl Send for SchedulerEvent
impl Sync for SchedulerEvent
impl Unpin for SchedulerEvent
impl UnsafeUnpin for SchedulerEvent
impl UnwindSafe for SchedulerEvent
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