pub struct ResourceTiming { /* private fields */ }Expand description
Timing information for the request.
Implementations§
Source§impl ResourceTiming
impl ResourceTiming
Sourcepub fn builder(
request_time: f64,
proxy_start: f64,
proxy_end: f64,
dns_start: f64,
dns_end: f64,
connect_start: f64,
connect_end: f64,
ssl_start: f64,
ssl_end: f64,
worker_start: f64,
worker_ready: f64,
worker_fetch_start: f64,
worker_respond_with_settled: f64,
send_start: f64,
send_end: f64,
push_start: f64,
push_end: f64,
receive_headers_start: f64,
receive_headers_end: f64,
) -> ResourceTimingBuilder
pub fn builder( request_time: f64, proxy_start: f64, proxy_end: f64, dns_start: f64, dns_end: f64, connect_start: f64, connect_end: f64, ssl_start: f64, ssl_end: f64, worker_start: f64, worker_ready: f64, worker_fetch_start: f64, worker_respond_with_settled: f64, send_start: f64, send_end: f64, push_start: f64, push_end: f64, receive_headers_start: f64, receive_headers_end: f64, ) -> ResourceTimingBuilder
Creates a builder for this type with the required parameters:
request_time: Timing’s requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.proxy_start: Started resolving proxy.proxy_end: Finished resolving proxy.dns_start: Started DNS address resolve.dns_end: Finished DNS address resolve.connect_start: Started connecting to the remote host.connect_end: Connected to the remote host.ssl_start: Started SSL handshake.ssl_end: Finished SSL handshake.worker_start: Started running ServiceWorker.worker_ready: Finished Starting ServiceWorker.worker_fetch_start: Started fetch event.worker_respond_with_settled: Settled fetch event respondWith promise.send_start: Started sending request.send_end: Finished sending request.push_start: Time the server started pushing request.push_end: Time the server finished pushing request.receive_headers_start: Started receiving response headers.receive_headers_end: Finished receiving response headers.
Sourcepub fn request_time(&self) -> f64
pub fn request_time(&self) -> f64
Timing’s requestTime is a baseline in seconds, while the other numbers are ticks in milliseconds relatively to this requestTime.
Sourcepub fn proxy_start(&self) -> f64
pub fn proxy_start(&self) -> f64
Started resolving proxy.
Sourcepub fn connect_start(&self) -> f64
pub fn connect_start(&self) -> f64
Started connecting to the remote host.
Sourcepub fn connect_end(&self) -> f64
pub fn connect_end(&self) -> f64
Connected to the remote host.
Sourcepub fn worker_start(&self) -> f64
pub fn worker_start(&self) -> f64
Started running ServiceWorker.
Sourcepub fn worker_ready(&self) -> f64
pub fn worker_ready(&self) -> f64
Finished Starting ServiceWorker.
Sourcepub fn worker_fetch_start(&self) -> f64
pub fn worker_fetch_start(&self) -> f64
Started fetch event.
Sourcepub fn worker_respond_with_settled(&self) -> f64
pub fn worker_respond_with_settled(&self) -> f64
Settled fetch event respondWith promise.
Sourcepub fn worker_router_evaluation_start(&self) -> Option<f64>
pub fn worker_router_evaluation_start(&self) -> Option<f64>
Started ServiceWorker static routing source evaluation.
Sourcepub fn worker_cache_lookup_start(&self) -> Option<f64>
pub fn worker_cache_lookup_start(&self) -> Option<f64>
Started cache lookup when the source was evaluated to ‘cache’.
Sourcepub fn send_start(&self) -> f64
pub fn send_start(&self) -> f64
Started sending request.
Sourcepub fn push_start(&self) -> f64
pub fn push_start(&self) -> f64
Time the server started pushing request.
Sourcepub fn receive_headers_start(&self) -> f64
pub fn receive_headers_start(&self) -> f64
Started receiving response headers.
Sourcepub fn receive_headers_end(&self) -> f64
pub fn receive_headers_end(&self) -> f64
Finished receiving response headers.
Trait Implementations§
Source§impl Clone for ResourceTiming
impl Clone for ResourceTiming
Source§fn clone(&self) -> ResourceTiming
fn clone(&self) -> ResourceTiming
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceTiming
impl Debug for ResourceTiming
Source§impl Default for ResourceTiming
impl Default for ResourceTiming
Source§fn default() -> ResourceTiming
fn default() -> ResourceTiming
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ResourceTiming
impl<'de> Deserialize<'de> for ResourceTiming
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 Freeze for ResourceTiming
impl RefUnwindSafe for ResourceTiming
impl Send for ResourceTiming
impl Sync for ResourceTiming
impl Unpin for ResourceTiming
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more