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

FieldCount

Returned when the provided expression does not have the correct number of fields.

Fields of FieldCount

expression: String

The raw expression being parsed.

parts: usize

The number of parts supplied.

InvalidValue

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.

ValueOutOfBounds

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.

ParsedValue

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.

InvertedRange

Returned when an inverted range is supplied.

Fields of InvertedRange

min: u32

The min value supplied.

max: u32

The max value supplied.

Trait Implementations

impl Debug for CronParsingError[src]

impl Display for CronParsingError[src]

impl Error for CronParsingError[src]

impl PartialEq<CronParsingError> for CronParsingError[src]

impl StructuralPartialEq for CronParsingError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.