pub struct NetworkEntry {Show 15 fields
pub request_id: String,
pub url: String,
pub method: String,
pub resource_type: Option<String>,
pub request_headers: Vec<(String, String)>,
pub request_body: Option<String>,
pub status: Option<u16>,
pub response_headers: Vec<(String, String)>,
pub mime_type: Option<String>,
pub response_body: NetworkBody,
pub from_cache: bool,
pub failed: Option<String>,
pub wall_time: Option<f64>,
pub started: f64,
pub finished: Option<f64>,
}Expand description
One captured network request and its response (when it completed).
Fields§
§request_id: StringProtocol request id, stable across the request/response events.
url: String§method: String§resource_type: Option<String>Resource kind reported by the engine (document, xhr, fetch, script, image, …), when available.
request_headers: Vec<(String, String)>§request_body: Option<String>Request payload (POST body) as reported by the engine, when present.
status: Option<u16>§response_headers: Vec<(String, String)>§mime_type: Option<String>§response_body: NetworkBody§from_cache: bool§failed: Option<String>Populated when the request failed (engine error text) instead of producing a response.
wall_time: Option<f64>Wall-clock start time (Unix epoch seconds), when the engine reports it.
started: f64Monotonic engine timestamps (seconds), for ordering and durations.
finished: Option<f64>Implementations§
Source§impl NetworkEntry
impl NetworkEntry
Sourcepub fn duration_ms(&self) -> Option<f64>
pub fn duration_ms(&self) -> Option<f64>
Request duration in milliseconds, once the response has completed.
Trait Implementations§
Source§impl Clone for NetworkEntry
impl Clone for NetworkEntry
Source§fn clone(&self) -> NetworkEntry
fn clone(&self) -> NetworkEntry
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 NetworkEntry
impl Debug for NetworkEntry
Source§impl<'de> Deserialize<'de> for NetworkEntry
impl<'de> Deserialize<'de> for NetworkEntry
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 NetworkEntry
impl RefUnwindSafe for NetworkEntry
impl Send for NetworkEntry
impl Sync for NetworkEntry
impl Unpin for NetworkEntry
impl UnsafeUnpin for NetworkEntry
impl UnwindSafe for NetworkEntry
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