pub enum ExecMode {
EveryTick,
OncePerPc,
OncePerTarget,
Event,
}Expand description
Per-pc/per-target dedup semantics for a Schedule (v0.19).
Variants§
EveryTick
Fire on every cron tick at the whole target. Historical (pre-v0.19) behavior; no dedup.
OncePerPc
Fire at each pc until that pc succeeds; then skip it until the optional cooldown elapses (or forever if no cooldown). Use for kitting / first-boot / per-pc compliance checks.
OncePerTarget
Fire at the whole target until any pc succeeds; then skip the whole target until the optional cooldown elapses (or forever if no cooldown). Use for “one delegate is enough” tasks like license check-in.
Event
#418 OS-native event trigger (when: { on: [...] }). There is
no cron — the agent fires it from an OS event source (boot /
session-change), not a tick — so the scheduler skips
tokio-cron registration for it. Each event occurrence fires
once, gated by the standard freeze / active / window /
skip_dates checks.
Trait Implementations§
impl Copy for ExecMode
Source§impl<'de> Deserialize<'de> for ExecMode
impl<'de> Deserialize<'de> for ExecMode
Source§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>,
impl Eq for ExecMode
Source§impl JsonSchema for ExecMode
impl JsonSchema for ExecMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreimpl StructuralPartialEq for ExecMode
Auto Trait Implementations§
impl Freeze for ExecMode
impl RefUnwindSafe for ExecMode
impl Send for ExecMode
impl Sync for ExecMode
impl Unpin for ExecMode
impl UnsafeUnpin for ExecMode
impl UnwindSafe for ExecMode
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
key and return true if they are equal.