pub struct RefreshReport {
pub url: String,
pub elapsed_ms: u64,
pub status_code: Option<u16>,
}Expand description
Diagnostic report produced by PageHandle::refresh.
§Example
use stygian_browser::page::RefreshReport;
let report = RefreshReport {
url: "https://example.com".to_string(),
elapsed_ms: 180,
status_code: Some(200),
};
assert_eq!(report.elapsed_ms, 180);Fields§
§url: StringURL of the page after the refresh navigation.
elapsed_ms: u64Elapsed wall-time in milliseconds.
status_code: Option<u16>HTTP status code of the refresh navigation, if captured.
Trait Implementations§
Source§impl Clone for RefreshReport
impl Clone for RefreshReport
Source§fn clone(&self) -> RefreshReport
fn clone(&self) -> RefreshReport
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 RefreshReport
impl Debug for RefreshReport
Source§impl<'de> Deserialize<'de> for RefreshReport
impl<'de> Deserialize<'de> for RefreshReport
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 RefreshReport
impl RefUnwindSafe for RefreshReport
impl Send for RefreshReport
impl Sync for RefreshReport
impl Unpin for RefreshReport
impl UnsafeUnpin for RefreshReport
impl UnwindSafe for RefreshReport
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