pub struct CronParser;Implementations§
Source§impl CronParser
impl CronParser
Sourcepub fn next_execution(
cron_expr: &str,
from_utc: DateTime<Utc>,
timezone: &str,
) -> Result<DateTime<Utc>>
pub fn next_execution( cron_expr: &str, from_utc: DateTime<Utc>, timezone: &str, ) -> Result<DateTime<Utc>>
Compute next execution time for a cron expression.
cron_expr: standard 5/6-field cron expression supported bycroncratefrom_utc: “now” moment as UTCtimezone: tz name like “UTC”, “Asia/Kolkata”
Returns next run time in UTC.
Auto Trait Implementations§
impl Freeze for CronParser
impl RefUnwindSafe for CronParser
impl Send for CronParser
impl Sync for CronParser
impl Unpin for CronParser
impl UnwindSafe for CronParser
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