Struct ScheduleState
pub struct ScheduleState {
pub name: String,
pub spec: ScheduleSpec,
pub last_ms: u64,
pub running: Option<(String, u64)>,
pub buffered: Option<u64>,
pub started: u64,
pub skipped: u64,
pub last_status: Option<String>,
pub fired: Vec<FiredSpan>,
pub backfill: Option<(u64, u64)>,
}Expand description
A schedule’s state; also its input after continuing as new.
Fields§
§name: String§spec: ScheduleSpec§last_ms: u64The last scheduled time considered (fired or skipped).
running: Option<(String, u64)>The run of the previous time, while it runs: (ID, time).
buffered: Option<u64>§started: u64§skipped: u64§last_status: Option<String>§fired: Vec<FiredSpan>Issued instants survive child retention and continue-as-new.
backfill: Option<(u64, u64)>The next backfill instant and inclusive end, carried between runs.
Trait Implementations§
§impl Clone for ScheduleState
impl Clone for ScheduleState
§fn clone(&self) -> ScheduleState
fn clone(&self) -> ScheduleState
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 more§impl Debug for ScheduleState
impl Debug for ScheduleState
§impl Default for ScheduleState
impl Default for ScheduleState
§fn default() -> ScheduleState
fn default() -> ScheduleState
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ScheduleStatewhere
ScheduleState: Default,
impl<'de> Deserialize<'de> for ScheduleStatewhere
ScheduleState: Default,
§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
§impl PartialEq for ScheduleState
impl PartialEq for ScheduleState
§impl Serialize for ScheduleState
impl Serialize for ScheduleState
impl StructuralPartialEq for ScheduleState
Auto Trait Implementations§
impl Freeze for ScheduleState
impl RefUnwindSafe for ScheduleState
impl Send for ScheduleState
impl Sync for ScheduleState
impl Unpin for ScheduleState
impl UnsafeUnpin for ScheduleState
impl UnwindSafe for ScheduleState
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