pub enum CronError {
InvalidFieldCount,
InvalidFieldSyntax,
ValueOutOfRange,
InvalidStep,
}Expand description
Error returned when parsing an invalid cron expression.
Variants§
InvalidFieldCount
Expression did not contain 5 or 6 fields (and was not a known macro alias).
InvalidFieldSyntax
Field token could not be parsed as *, value, range, or step.
ValueOutOfRange
Numeric value fell outside the field’s valid bounds.
InvalidStep
Step divisor was zero or unparseable.
Trait Implementations§
impl Copy for CronError
impl Eq for CronError
Source§impl Error for CronError
Marks CronError as a standard error type.
impl Error for CronError
Marks CronError as a standard error type.
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for CronError
Auto Trait Implementations§
impl Forget for CronError
impl Freeze for CronError
impl Move for CronError
impl RefUnwindSafe for CronError
impl Send for CronError
impl Sync for CronError
impl Unpin for CronError
impl UnsafeUnpin for CronError
impl UnwindSafe for CronError
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