pub struct Schedule {Show 15 fields
pub id: String,
pub kind: String,
pub payload: Vec<u8>,
pub queue: String,
pub partition_key: String,
pub rate_class: String,
pub priority: i32,
pub max_attempts: u32,
pub retention_ms: i64,
pub spec: String,
pub next_run_ms: i64,
pub last_enqueued_ms: Option<i64>,
pub on_missed: MissedPolicy,
pub backfill_limit: u32,
pub paused: bool,
}Expand description
A periodic entry. Durable in the store (surveyed policy behavior), never in a leader’s memory. The
store treats spec as opaque; tick computation lives caller-side so every backend
stays spec-agnostic.
Fields§
§id: String§kind: String§payload: Vec<u8>§queue: String§partition_key: String§rate_class: String§priority: i32§max_attempts: u32§retention_ms: i64§spec: String“@every:
next_run_ms: i64The next UNFIRED tick. Advancing past it is a compare-and-set, so racing scheduler nodes cannot double-advance.
last_enqueued_ms: Option<i64>§on_missed: MissedPolicy§backfill_limit: u32§paused: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
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