pub struct Schedule { /* private fields */ }Expand description
A parsed schedule.
Implementations§
Source§impl Schedule
impl Schedule
Sourcepub fn parse(expr: &str) -> Result<Schedule>
pub fn parse(expr: &str) -> Result<Schedule>
Parse expr (five fields or an alias), read in UTC.
Sourcepub fn parse_in(expr: &str, offset: i32) -> Result<Schedule>
pub fn parse_in(expr: &str, offset: i32) -> Result<Schedule>
Parse expr, its fields read at offset seconds east of UTC.
Sourcepub fn next_after(&self, t: i64) -> Option<i64>
pub fn next_after(&self, t: i64) -> Option<i64>
The first firing time strictly after t (Unix seconds), or None
if none comes within eight years (the schedule never fires).
Trait Implementations§
impl Eq for Schedule
impl StructuralPartialEq for Schedule
Auto Trait Implementations§
impl Freeze for Schedule
impl RefUnwindSafe for Schedule
impl Send for Schedule
impl Sync for Schedule
impl Unpin for Schedule
impl UnsafeUnpin for Schedule
impl UnwindSafe for Schedule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.