pub struct NetworkSummary {
pub total_requests: usize,
pub successful: usize,
pub failed: usize,
pub total_bytes: u64,
pub total_time: Duration,
pub wall_time: Duration,
pub slowest: Option<NetworkTiming>,
pub largest: Option<NetworkTiming>,
pub domains: Vec<DomainStats>,
}Expand description
Network trace summary
Fields§
§total_requests: usizeTotal number of requests
successful: usizeSuccessful requests (2xx/3xx)
failed: usizeFailed requests (4xx/5xx or errors)
total_bytes: u64Total bytes transferred
total_time: DurationTotal time for all requests
wall_time: DurationWall clock time since tracer creation
slowest: Option<NetworkTiming>Slowest request
largest: Option<NetworkTiming>Largest download
domains: Vec<DomainStats>Per-domain statistics
Implementations§
Source§impl NetworkSummary
impl NetworkSummary
Sourcepub fn to_summary_string(&self) -> String
pub fn to_summary_string(&self) -> String
Generate human-readable summary
Trait Implementations§
Source§impl Clone for NetworkSummary
impl Clone for NetworkSummary
Source§fn clone(&self) -> NetworkSummary
fn clone(&self) -> NetworkSummary
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 NetworkSummary
impl Debug for NetworkSummary
Auto Trait Implementations§
impl Freeze for NetworkSummary
impl RefUnwindSafe for NetworkSummary
impl Send for NetworkSummary
impl Sync for NetworkSummary
impl Unpin for NetworkSummary
impl UnsafeUnpin for NetworkSummary
impl UnwindSafe for NetworkSummary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more