pub struct Hop {Show 26 fields
pub tier: Tier,
pub ok: bool,
pub code: String,
pub status: u16,
pub ms: u64,
pub cost: f64,
pub upto: f64,
pub country: String,
pub timeout_s: u64,
pub kind: &'static str,
pub body: Vec<u8>,
pub headers: String,
pub final_url: String,
pub landed: Option<String>,
pub refreshed_from: Option<String>,
pub vis: usize,
pub doc: Option<Doc>,
pub tree: Option<Tree>,
pub charset: &'static str,
pub hits: Vec<Hit>,
pub err: Vec<u8>,
pub why: String,
pub limit: Option<Limit>,
pub end: Option<Instant>,
pub lang: String,
pub waited: u64,
}Expand description
One call’s outcome: the hop row in meta.json, plus the body and doc for the store.
Fields§
§tier: Tier§ok: bool§code: String§status: u16§ms: u64§cost: f64§upto: f64cache::HopRow::upto: a call we cut, its price unverified (billed).
country: StringThe request shape (cache::HopRow): the country sent (run, run_search), the timeout (drive).
timeout_s: u64§kind: &'static strclean::kind_of: html, pdf, zip, text, json, xml; empty = no body.
body: Vec<u8>§headers: StringThe answer’s status (HTTP 200) and its headers as Raw::headers keeps them (lower case), no credential
(provider::header_lines): Meta::headers.
final_url: StringWhere the answer came from: the base of its links and pictures.
landed: Option<String>Where a bd ask landed by its same-site canonical link (canonical): Meta::landed, never a base.
refreshed_from: Option<String>The page whose meta refresh plain followed to this one (provider::refresh): Meta::refreshed_from.
vis: usizeVisible characters (picks the best copy when every hop fails).
doc: Option<Doc>§tree: Option<Tree>A failed HTML answer’s parse, kept so the best failed copy is cleaned without a second parse.
charset: &'static str§hits: Vec<Hit>A search’s answer, best first.
err: Vec<u8>The provider’s own error answer, masked: kept as error.txt, never printed.
why: StringFail::why: the token the ! row adds to the code.
limit: Option<Limit>The provider’s request budget from this answer (provider::Limit): stored as two numbers in the hop.
end: Option<Instant>When the call landed (billed): a thin answer waits the hedge window from here (next).
lang: StringThe HTML answer’s <html lang> primary subtag, lower case (it); empty = none declared (langs).
waited: u64Ms plain waited for its turn before it started (provider::pace), not in ms.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Hop
impl Freeze for Hop
impl RefUnwindSafe for Hop
impl Send for Hop
impl Sync for Hop
impl Unpin for Hop
impl UnsafeUnpin for Hop
impl UnwindSafe for Hop
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
T, using the provided data to resolve any offsets.