pub struct ResourceTiming { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Expand description
Timing information for the request.
Implementations§
Source§impl ResourceTiming
impl ResourceTiming
pub fn builder() -> ResourceTimingBuilder
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
Available on crate feature experimental only.
pub fn worker_start(&self) -> f64
experimental only.Started running ServiceWorker.
Sourcepub fn worker_ready(&self) -> f64
Available on crate feature experimental only.
pub fn worker_ready(&self) -> f64
experimental only.Finished Starting ServiceWorker.
Sourcepub fn worker_fetch_start(&self) -> f64
Available on crate feature experimental only.
pub fn worker_fetch_start(&self) -> f64
experimental only.Started fetch event.
Sourcepub fn worker_respond_with_settled(&self) -> f64
Available on crate feature experimental only.
pub fn worker_respond_with_settled(&self) -> f64
experimental only.Settled fetch event respondWith promise.
Sourcepub fn send_start(&self) -> f64
pub fn send_start(&self) -> f64
Started sending request.
Sourcepub fn push_start(&self) -> f64
Available on crate feature experimental only.
pub fn push_start(&self) -> f64
experimental only.Time the server started pushing request.
Sourcepub fn push_end(&self) -> f64
Available on crate feature experimental only.
pub fn push_end(&self) -> f64
experimental only.Time the server finished pushing request.
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 · 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<'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 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