Struct cronchik::CronSchedule [−][src]
pub struct CronSchedule { /* fields omitted */ }
Expand description
Cron schedule.
Size
184 bytes.
This is relatively big struct, which might be better suited to be allocated on heap.
So if you expect to move it a lot, prefer heap.
Alternatively you could store cron expression as String
and parse it each time.
Usage
use cronchik::CronSchedule; let schedule = CronSchedule::parse_str("5 * * * *").unwrap(); assert_eq!(core::mem::size_of::<CronSchedule>(), 184);
Implementations
Parses cron expression from string.
Returns ordered list of scheduled days in month to run at.
Returns ordered list of scheduled days in week to run at.
Returns next point if time, after time
, accordingly to the schedule.
Returns next point if time, after current time in UTC timezone.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for CronSchedule
impl Send for CronSchedule
impl Sync for CronSchedule
impl Unpin for CronSchedule
impl UnwindSafe for CronSchedule
Blanket Implementations
Mutably borrows from an owned value. Read more