pub enum Recurrence {
At {
time: TimeOfDay,
span: SourceSpan,
},
EveryDuration {
seconds: u64,
source: String,
span: SourceSpan,
},
EveryCalendar {
pattern: CalendarPattern,
time: TimeOfDay,
span: SourceSpan,
},
}Expand description
Recurrence forms from spec/std-time.md (conservative first surface).
Variants§
At
at <hh:mm> — a single scheduled occurrence.
EveryDuration
every <duration> — interval occurrences.
EveryCalendar
every <calendar-pattern> at <hh:mm> — calendar occurrences.
Trait Implementations§
Source§impl Clone for Recurrence
impl Clone for Recurrence
Source§fn clone(&self) -> Recurrence
fn clone(&self) -> Recurrence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Recurrence
impl Debug for Recurrence
impl Eq for Recurrence
Source§impl PartialEq for Recurrence
impl PartialEq for Recurrence
impl StructuralPartialEq for Recurrence
Auto Trait Implementations§
impl Freeze for Recurrence
impl RefUnwindSafe for Recurrence
impl Send for Recurrence
impl Sync for Recurrence
impl Unpin for Recurrence
impl UnsafeUnpin for Recurrence
impl UnwindSafe for Recurrence
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