pub struct CronSchedule { /* private fields */ }Implementations§
Source§impl CronSchedule
impl CronSchedule
Sourcepub fn new(expression: &str, timezone: &str) -> Result<Self, String>
pub fn new(expression: &str, timezone: &str) -> Result<Self, String>
Parse a bare five-field expression with an explicit IANA zone.
Sourcepub fn parse(input: &str, default_timezone: &str) -> Result<Self, String>
pub fn parse(input: &str, default_timezone: &str) -> Result<Self, String>
Accept the lossless text representation or a bare expression.
Sourcepub fn from_encoded(input: &str) -> Result<Self, String>
pub fn from_encoded(input: &str) -> Result<Self, String>
Decode a persisted rule. Its effective time zone is mandatory.
pub fn as_str(&self) -> &str
Sourcepub fn index_fields(&self) -> (&str, [u64; 5], bool)
pub fn index_fields(&self) -> (&str, [u64; 5], bool)
Calendar axes used by the inverted index, in minute, hour, month, day-of-month and weekday order. The flag selects Vixie day conjunction.
Sourcepub fn next(&self, start_ms: i64) -> Result<Option<i64>, String>
pub fn next(&self, start_ms: i64) -> Result<Option<i64>, String>
Find the first scheduled instant at or after the supplied instant.
Trait Implementations§
Source§impl Clone for CronSchedule
impl Clone for CronSchedule
Source§impl Debug for CronSchedule
impl Debug for CronSchedule
Source§impl Display for CronSchedule
impl Display for CronSchedule
impl Eq for CronSchedule
Source§impl Hash for CronSchedule
impl Hash for CronSchedule
Auto Trait Implementations§
impl Forget for CronSchedule
impl Freeze for CronSchedule
impl Move for CronSchedule
impl RefUnwindSafe for CronSchedule
impl Send for CronSchedule
impl Sync for CronSchedule
impl Unpin for CronSchedule
impl UnsafeUnpin for CronSchedule
impl UnwindSafe for CronSchedule
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