Enum timespan::Error [] [src]

pub enum Error {
    Parsing(ParseError),
    Regex(Error),
    Ordering,
    OutOfRange,
    Empty,
    NotContinuous,
    NoStart,
    NoEnd,
    LocalAmbigious,
}

This error describes errors that can occur when operating on spans.

Variants

A span could not be parsed from a string.

This occurs when a regex failed to compile or match. This is usually associated with a parsing operation.

The bounds of the span are not in the correct order.

An operation accessed time slots that are outside the bounds of the span.

The span has a duration of zero.

An operation would split a span in two.

The span has no start time.

The span has no end time.

The local time zone is ambigious.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl StdError for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<ParseError> for Error
[src]

Performs the conversion.

impl From<Error> for Error
[src]

Performs the conversion.