pub struct UrlFetchTimes {
pub fetches: u32,
pub cache_hits: u32,
pub remembered_failures: u32,
pub lookup: Duration,
pub connect: Duration,
pub first_byte: Duration,
pub body: Duration,
pub body_bytes: u64,
pub convert: Duration,
pub redirects: u32,
pub retries: u32,
pub error: Option<(&'static str, Option<FetchPhase>)>,
}Expand description
Every URL fetch one call made, summed.
Fields§
§fetches: u32Documents asked for: downloads, cache hits and failures answered from memory.
cache_hits: u32Served from the URL cache with no request sent.
remembered_failures: u32Answered with a failure remembered from an earlier fetch of the same URL, with no request sent.
lookup: DurationThe private-address check’s host name lookups, which run before each request (and before a cache hit is served).
connect: DurationConnection setup (TCP and TLS) inside the HTTP client, summed over
attempts. Part of first_byte.
first_byte: DurationFrom sending each request until its response headers arrived, including connection setup, the server’s own time to answer, and any retry backoff; summed over redirect hops.
body: DurationReading response bodies.
body_bytes: u64Body bytes received.
convert: DurationConverting HTML pages to Markdown, on the calling thread.
redirects: u32Redirects followed.
retries: u32Requests sent again after a transient connection failure.
error: Option<(&'static str, Option<FetchPhase>)>The last failed fetch’s error code and, for a timeout, its phase.
Implementations§
Source§impl UrlFetchTimes
impl UrlFetchTimes
Sourcepub fn render(&self) -> String
pub fn render(&self) -> String
url_fetch=fetches:1,cache_hits:0,remembered:0,lookup:2.10, connect:40.00,first_byte:5800.00,body:300.00,bytes:51234, convert:4.00,redirects:0,retries:0 (milliseconds for times), then
,error:<code>[/<phase>] when a fetch failed. One field with no
spaces and no URL: the host is already in the call’s target kind.
Trait Implementations§
Source§impl Clone for UrlFetchTimes
impl Clone for UrlFetchTimes
impl Copy for UrlFetchTimes
Source§impl Debug for UrlFetchTimes
impl Debug for UrlFetchTimes
Source§impl Default for UrlFetchTimes
impl Default for UrlFetchTimes
impl Eq for UrlFetchTimes
Source§impl PartialEq for UrlFetchTimes
impl PartialEq for UrlFetchTimes
impl StructuralPartialEq for UrlFetchTimes
Auto Trait Implementations§
impl Forget for UrlFetchTimes
impl Freeze for UrlFetchTimes
impl Move for UrlFetchTimes
impl RefUnwindSafe for UrlFetchTimes
impl Send for UrlFetchTimes
impl Sync for UrlFetchTimes
impl Unpin for UrlFetchTimes
impl UnsafeUnpin for UrlFetchTimes
impl UnwindSafe for UrlFetchTimes
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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 more