pub enum ScheduleError {
EmptyCronExpression,
CronParse {
expression: String,
source: CronParseError,
},
NoNextFireTime {
expression: String,
},
ZeroInterval,
IntervalOutOfRange,
NextFireTimeOutOfRange,
}Expand description
Errors returned while validating or evaluating schedule triggers.
Variants§
EmptyCronExpression
The supplied cron expression is empty or contains only whitespace.
CronParse
The supplied cron expression could not be parsed by the cron parser.
Fields
§
source: CronParseErrorParser error returned by the underlying cron crate.
NoNextFireTime
The cron expression has no future matching timestamp.
ZeroInterval
Interval triggers must advance time by a positive duration.
IntervalOutOfRange
The supplied interval cannot be represented by chrono’s duration type.
NextFireTimeOutOfRange
Adding the interval to the reference timestamp overflowed.
Trait Implementations§
Source§impl Debug for ScheduleError
impl Debug for ScheduleError
Source§impl Display for ScheduleError
impl Display for ScheduleError
Source§impl Error for ScheduleError
impl Error for ScheduleError
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()
Source§impl From<ScheduleError> for EngineError
impl From<ScheduleError> for EngineError
Source§fn from(error: ScheduleError) -> Self
fn from(error: ScheduleError) -> Self
Converts to this type from the input type.
Source§impl From<ScheduleError> for ScheduleEvaluatorError
impl From<ScheduleError> for ScheduleEvaluatorError
Source§fn from(source: ScheduleError) -> Self
fn from(source: ScheduleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ScheduleError
impl RefUnwindSafe for ScheduleError
impl Send for ScheduleError
impl Sync for ScheduleError
impl Unpin for ScheduleError
impl UnsafeUnpin for ScheduleError
impl UnwindSafe for ScheduleError
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