pub enum RelayCrawlError {
Unreachable {
relay: String,
url: String,
source: Error,
},
Refused {
relay: String,
status: u16,
body: String,
},
}Expand description
Why a relay did not end up crawling this server.
Both variants are returned to the caller rather than swallowed — see the module documentation for who that caller is and what it does with one.
Variants§
Unreachable
The request never completed: nothing listening, DNS, TLS, or the timeout.
Fields
§
source: ErrorThe transport failure reqwest reported.
Refused
The relay answered, but not with success — including HostBanned,
the one error requestCrawl’s own document declares.
Trait Implementations§
Source§impl Debug for RelayCrawlError
impl Debug for RelayCrawlError
Source§impl Display for RelayCrawlError
impl Display for RelayCrawlError
Source§impl Error for RelayCrawlError
impl Error for RelayCrawlError
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()
Auto Trait Implementations§
impl Freeze for RelayCrawlError
impl !RefUnwindSafe for RelayCrawlError
impl Send for RelayCrawlError
impl Sync for RelayCrawlError
impl Unpin for RelayCrawlError
impl UnsafeUnpin for RelayCrawlError
impl !UnwindSafe for RelayCrawlError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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