Enum parse_zoneinfo::table::Error
source · pub enum Error<'line> {
SurpriseContinuationLine,
UnknownRuleset(&'line str),
DuplicateLink(&'line str),
DuplicateZone,
}
Expand description
Something that can go wrong while constructing a Table
.
Variants§
SurpriseContinuationLine
A continuation line was passed in, but the previous line wasn’t a zone definition line.
UnknownRuleset(&'line str)
A zone definition referred to a ruleset that hadn’t been defined.
DuplicateLink(&'line str)
A link line was passed in, but there’s already a link with that name.
DuplicateZone
A zone line was passed in, but there’s already a zone with that name.
Trait Implementations§
source§impl<'line> Error for Error<'line>
impl<'line> Error for Error<'line>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<'line> PartialEq for Error<'line>
impl<'line> PartialEq for Error<'line>
impl<'line> Copy for Error<'line>
impl<'line> StructuralPartialEq for Error<'line>
Auto Trait Implementations§
impl<'line> Freeze for Error<'line>
impl<'line> RefUnwindSafe for Error<'line>
impl<'line> Send for Error<'line>
impl<'line> Sync for Error<'line>
impl<'line> Unpin for Error<'line>
impl<'line> UnwindSafe for Error<'line>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more