Enum curds_cron::CronParsingError [−][src]
pub enum CronParsingError { FieldCount { expression: String, parts: usize, }, InvalidValue { date_part: CronDatePart, value: String, }, ValueOutOfBounds { raw_value: String, allowed: u32, supplied: u32, date_part: CronDatePart, }, ParsedValue { value: String, date_part: CronDatePart, }, InvertedRange { min: u32, max: u32, }, }
An enum covering the possible failures when parsing a CronExpression.
Variants
Returned when the provided expression does not have the correct number of fields.
Fields of FieldCount
Returned when a value is never handled in parsing.
Fields of InvalidValue
date_part: CronDatePart
The CronDatePart for which the value was supplied.
value: String
The value that was not handled.
Returned when a parsed value is outside the allowable limits for that field.
Fields of ValueOutOfBounds
raw_value: String
The raw value being parsed.
allowed: u32
The allowed boundary value.
supplied: u32
The supplied value.
date_part: CronDatePart
The CronDatePart for which the value was supplied.
Returned when a supplied value does not end up parsing properly.
Fields of ParsedValue
value: String
The value for which parsing was attempted.
date_part: CronDatePart
The CronDatePart for which the value was supplied.
Returned when an inverted range is supplied.
Trait Implementations
impl Debug for CronParsingError
[src]
impl Display for CronParsingError
[src]
impl Error for CronParsingError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl PartialEq<CronParsingError> for CronParsingError
[src]
fn eq(&self, other: &CronParsingError) -> bool
[src]
fn ne(&self, other: &CronParsingError) -> bool
[src]
impl StructuralPartialEq for CronParsingError
[src]
Auto Trait Implementations
impl RefUnwindSafe for CronParsingError
impl Send for CronParsingError
impl Sync for CronParsingError
impl Unpin for CronParsingError
impl UnwindSafe for CronParsingError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,