pub struct WarmupReport {
pub url: String,
pub elapsed_ms: u64,
pub status_code: Option<u16>,
pub title: String,
pub stabilized: bool,
}Expand description
Diagnostic report produced by PageHandle::warmup.
§Example
use stygian_browser::page::WarmupReport;
let report = WarmupReport {
url: "https://example.com".to_string(),
elapsed_ms: 250,
status_code: Some(200),
title: "Example Domain".to_string(),
stabilized: false,
};
assert_eq!(report.status_code, Some(200));Fields§
§url: StringThe URL that was warmed.
elapsed_ms: u64Elapsed wall-time in milliseconds.
status_code: Option<u16>HTTP status code of the warmup navigation, if captured by the
Network.responseReceived listener.
title: StringPage title after warmup navigation.
stabilized: boolWhether a stabilization pause (stabilize_ms > 0) was applied after
navigation.
Trait Implementations§
Source§impl Clone for WarmupReport
impl Clone for WarmupReport
Source§fn clone(&self) -> WarmupReport
fn clone(&self) -> WarmupReport
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 WarmupReport
impl Debug for WarmupReport
Source§impl<'de> Deserialize<'de> for WarmupReport
impl<'de> Deserialize<'de> for WarmupReport
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 WarmupReport
impl RefUnwindSafe for WarmupReport
impl Send for WarmupReport
impl Sync for WarmupReport
impl Unpin for WarmupReport
impl UnsafeUnpin for WarmupReport
impl UnwindSafe for WarmupReport
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