pub struct HopRow {
pub provider: String,
pub code: String,
pub cost: f64,
pub ms: u64,
pub why: String,
pub upto: f64,
pub country: String,
pub timeout_s: u64,
pub limit: Option<u32>,
pub remaining: Option<u32>,
pub waited_ms: Option<u64>,
}Expand description
One provider call in a fetch’s or search’s hops, as meta.json keeps it: fetch::Hop::row writes it, every
view reads its fields. provider is the stored name (brightdata, oxylabs-js); only the fields a view
surfaces are kept: provider, code, cost, ms, why (tried/health/fail_detail), and the request budget
limit/remaining (limits, kept as the two numbers Oxylabs sends).
Fields§
§provider: String§code: String§cost: f64§ms: u64§why: String§upto: f64A call WE cut (our timeout, wait:, abandoned): its list price, unverified (fetch::billed); not in cost.
country: StringThe request shape: the exit country sent (empty = none) and the call’s timeout; the tier says run_js.
timeout_s: u64§limit: Option<u32>§remaining: Option<u32>§waited_ms: Option<u64>Ms plain waited for its turn (the home-IP brake), apart from ms; none = no wait.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HopRow
impl<'de> Deserialize<'de> for HopRow
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for HopRow
impl Freeze for HopRow
impl RefUnwindSafe for HopRow
impl Send for HopRow
impl Sync for HopRow
impl Unpin for HopRow
impl UnsafeUnpin for HopRow
impl UnwindSafe for HopRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 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
Convert this type into
T, using the provided data to resolve any offsets.