pub enum ParserError {
Parse(String),
Date(DateError),
}
Expand description
Represents possible issues that may arise when trying to parse web feeds. If this occurs then a web feed is considered invalid.
Variants§
Implementations§
Source§impl ParserError
impl ParserError
Sourcepub const fn generic_date_error(msg: String) -> Self
pub const fn generic_date_error(msg: String) -> Self
Less verbose way of instantiating a DateError::Generic
.
Sourcepub const fn timezone_date_error(msg: String) -> Self
pub const fn timezone_date_error(msg: String) -> Self
Less verbose way of instantiating a DateError::TimeZoneError
.
Sourcepub const fn empty_date_error() -> Self
pub const fn empty_date_error() -> Self
Less verbose way of instantiating a DateError::Empty
.
Trait Implementations§
Source§impl Debug for ParserError
impl Debug for ParserError
Source§impl Display for ParserError
impl Display for ParserError
Source§impl From<DeError> for ParserError
impl From<DeError> for ParserError
Source§impl Hash for ParserError
impl Hash for ParserError
Source§impl PartialEq for ParserError
impl PartialEq for ParserError
impl Eq for ParserError
impl StructuralPartialEq for ParserError
Auto Trait Implementations§
impl Freeze for ParserError
impl RefUnwindSafe for ParserError
impl Send for ParserError
impl Sync for ParserError
impl Unpin for ParserError
impl UnwindSafe for ParserError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more