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
Parsing(ParseError)
A span could not be parsed from a string.
Regex(Error)
This occurs when a regex failed to compile or match. This is usually associated with a parsing operation.
Ordering
The bounds of the span are not in the correct order.
OutOfRange
An operation accessed time slots that are outside the bounds of the span.
Empty
The span has a duration of zero.
NotContinuous
An operation would split a span in two.
NoStart
The span has no start time.
NoEnd
The span has no end time.
LocalAmbigious
The local time zone is ambigious.
Trait Implementations
impl Debug for Error
[src]
impl Display for Error
[src]
impl StdError for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more
impl From<ParseError> for Error
[src]
fn from(e: ParseError) -> Self
Performs the conversion.