pub enum ExecMode {
EveryTick,
OncePerPc,
OncePerTarget,
}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.
Trait Implementations§
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for ExecMode
impl JsonSchema for ExecMode
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl Copy for ExecMode
impl Eq for ExecMode
impl 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
Mutably borrows from an owned value. Read more