pub struct Spec {
pub prompt: String,
pub schedule: Schedule,
pub times: Option<u32>,
pub until: Option<String>,
}Expand description
What a loop was told to do: the prompt, how often, and its two bounds.
Fields§
§prompt: String§schedule: ScheduleOne of cron’s schedules. Every is the ordinary case; the named moments are accepted
because they come from the same parser and refusing them would be a second grammar.
times: Option<u32>Stop after this many ticks that actually ran. None is unbounded.
until: Option<String>A yes/no question asked on the aux route after each tick. None never asks.
Implementations§
Trait Implementations§
impl Eq for Spec
impl StructuralPartialEq for Spec
Auto Trait Implementations§
impl Forget for Spec
impl Freeze for Spec
impl Move for Spec
impl RefUnwindSafe for Spec
impl Send for Specwhere
RawVecInner: Send,
impl Sync for Specwhere
RawVecInner: Sync,
impl Unpin for Spec
impl UnsafeUnpin for Spec
impl UnwindSafe for Specwhere
RawVecInner: UnwindSafe,
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
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.