Enum adblock::request::RequestError
source · pub enum RequestError {
HostnameParseError,
SourceHostnameParseError,
UnicodeDecodingError,
}
Expand description
Possible failure reasons when creating a Request
.
Variants§
Trait Implementations§
source§impl Debug for RequestError
impl Debug for RequestError
source§impl Display for RequestError
impl Display for RequestError
source§impl Error for RequestError
impl Error for RequestError
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 From<Errors> for RequestError
impl From<Errors> for RequestError
source§fn from(_err: Errors) -> RequestError
fn from(_err: Errors) -> RequestError
Converts to this type from the input type.
source§impl From<ParseError> for RequestError
impl From<ParseError> for RequestError
source§fn from(_err: ParseError) -> RequestError
fn from(_err: ParseError) -> RequestError
Converts to this type from the input type.
source§impl PartialEq for RequestError
impl PartialEq for RequestError
source§fn eq(&self, other: &RequestError) -> bool
fn eq(&self, other: &RequestError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RequestError
Auto Trait Implementations§
impl Freeze for RequestError
impl RefUnwindSafe for RequestError
impl Send for RequestError
impl Sync for RequestError
impl Unpin for RequestError
impl UnwindSafe for RequestError
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