pub struct ResourceTiming {Show 21 fields
pub request_time: f64,
pub proxy_start: f64,
pub proxy_end: f64,
pub dns_start: f64,
pub dns_end: f64,
pub connect_start: f64,
pub connect_end: f64,
pub ssl_start: f64,
pub ssl_end: f64,
pub worker_start: f64,
pub worker_ready: f64,
pub worker_fetch_start: f64,
pub worker_respond_with_settled: f64,
pub worker_router_evaluation_start: Option<f64>,
pub worker_cache_lookup_start: Option<f64>,
pub send_start: f64,
pub send_end: f64,
pub push_start: f64,
pub push_end: f64,
pub receive_headers_start: f64,
pub receive_headers_end: f64,
}Expand description
Timing information for the request. ResourceTiming
Fields§
§request_time: f64Timing’s requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.
proxy_start: f64Started resolving proxy.
proxy_end: f64Finished resolving proxy.
dns_start: f64Started DNS address resolve.
dns_end: f64Finished DNS address resolve.
connect_start: f64Started connecting to the remote host.
connect_end: f64Connected to the remote host.
ssl_start: f64Started SSL handshake.
ssl_end: f64Finished SSL handshake.
worker_start: f64Started running ServiceWorker.
worker_ready: f64Finished Starting ServiceWorker.
worker_fetch_start: f64Started fetch event.
worker_respond_with_settled: f64Settled fetch event respondWith promise.
worker_router_evaluation_start: Option<f64>Started ServiceWorker static routing source evaluation.
worker_cache_lookup_start: Option<f64>Started cache lookup when the source was evaluated to cache.
send_start: f64Started sending request.
send_end: f64Finished sending request.
push_start: f64Time the server started pushing request.
push_end: f64Time the server finished pushing request.
receive_headers_start: f64Started receiving response headers.
receive_headers_end: f64Finished receiving response headers.
Implementations§
source§impl ResourceTiming
impl ResourceTiming
pub fn builder() -> ResourceTimingBuilder
source§impl ResourceTiming
impl ResourceTiming
pub const IDENTIFIER: &'static str = "Network.ResourceTiming"
Trait Implementations§
source§impl Clone for ResourceTiming
impl Clone for ResourceTiming
source§fn clone(&self) -> ResourceTiming
fn clone(&self) -> ResourceTiming
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ResourceTiming
impl Debug for ResourceTiming
source§impl<'de> Deserialize<'de> for ResourceTiming
impl<'de> Deserialize<'de> for ResourceTiming
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceTiming, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ResourceTiming, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for ResourceTiming
impl PartialEq for ResourceTiming
source§impl Serialize for ResourceTiming
impl Serialize for ResourceTiming
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ResourceTiming
Auto Trait Implementations§
impl Freeze for ResourceTiming
impl RefUnwindSafe for ResourceTiming
impl Send for ResourceTiming
impl Sync for ResourceTiming
impl Unpin for ResourceTiming
impl UnwindSafe for ResourceTiming
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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