pub enum Error {
Parsing(ParseError),
Regex(Error),
Ordering,
OutOfRange,
Empty,
NotContinuous,
NoStart,
NoEnd,
LocalAmbigious,
BadFormat,
}
Expand description
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.
BadFormat
The given string has a bad format.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl From<ParseError> for Error
impl From<ParseError> for Error
sourcefn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more