pub enum SchedulePolicy {
Repeat {
interval_ns: u64,
},
Cron {
expr: String,
},
}
Expand description
Task spawning policy of the schedule.
It is used to configure how and when new tasks are spawned.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SchedulePolicy
impl Clone for SchedulePolicy
Source§fn clone(&self) -> SchedulePolicy
fn clone(&self) -> SchedulePolicy
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 SchedulePolicy
impl Debug for SchedulePolicy
Source§impl<'de> Deserialize<'de> for SchedulePolicy
impl<'de> Deserialize<'de> for SchedulePolicy
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
Auto Trait Implementations§
impl Freeze for SchedulePolicy
impl RefUnwindSafe for SchedulePolicy
impl Send for SchedulePolicy
impl Sync for SchedulePolicy
impl Unpin for SchedulePolicy
impl UnwindSafe for SchedulePolicy
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