pub enum ExtractUrlError<ExtractorError> {
Unsupported {
url: String,
},
Extractor(ExtractorError),
}Expand description
Denotes failure to derive extraction from an input URL.
Variants§
Unsupported
Denotes that no catalog entry accepts the URL.
Extractor(ExtractorError)
Denotes failure of the selected extractor.
Trait Implementations§
Source§impl<ExtractorError: Debug> Debug for ExtractUrlError<ExtractorError>
impl<ExtractorError: Debug> Debug for ExtractUrlError<ExtractorError>
Source§impl<ExtractorError> Display for ExtractUrlError<ExtractorError>where
ExtractorError: Display,
impl<ExtractorError> Display for ExtractUrlError<ExtractorError>where
ExtractorError: Display,
impl<ExtractorError: Eq> Eq for ExtractUrlError<ExtractorError>
Source§impl<ExtractorError> Error for ExtractUrlError<ExtractorError>
impl<ExtractorError> Error for ExtractUrlError<ExtractorError>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<ExtractorError: PartialEq> PartialEq for ExtractUrlError<ExtractorError>
impl<ExtractorError: PartialEq> PartialEq for ExtractUrlError<ExtractorError>
impl<ExtractorError: PartialEq> StructuralPartialEq for ExtractUrlError<ExtractorError>
Auto Trait Implementations§
impl<ExtractorError> Freeze for ExtractUrlError<ExtractorError>where
ExtractorError: Freeze,
impl<ExtractorError> RefUnwindSafe for ExtractUrlError<ExtractorError>where
ExtractorError: RefUnwindSafe,
impl<ExtractorError> Send for ExtractUrlError<ExtractorError>where
ExtractorError: Send,
impl<ExtractorError> Sync for ExtractUrlError<ExtractorError>where
ExtractorError: Sync,
impl<ExtractorError> Unpin for ExtractUrlError<ExtractorError>where
ExtractorError: Unpin,
impl<ExtractorError> UnsafeUnpin for ExtractUrlError<ExtractorError>where
ExtractorError: UnsafeUnpin,
impl<ExtractorError> UnwindSafe for ExtractUrlError<ExtractorError>where
ExtractorError: UnwindSafe,
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> 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