#[non_exhaustive]pub struct SiteStats {
pub file: &'static str,
pub line: u32,
pub column: u32,
pub checks: u64,
pub reports: u64,
pub units: u64,
pub max_gap_before_check: Duration,
pub time: Duration,
pub active: Option<(Duration, Duration)>,
}Expand description
Counts for one call site within one span.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file: &'static strSource file, captured through #[track_caller].
line: u32Line.
column: u32Column.
checks: u64Cancellation checks.
reports: u64Report calls.
units: u64Units those reports added (saturating).
max_gap_before_check: DurationLongest interval that ended at a check at this site.
time: DurationWall time of the intervals that ended at this site: from the span’s
previous check or timed report, or its entry, to this site’s call.
Reports count only with Profiler::set_report_timing on.
active: Option<(Duration, Duration)>When this site’s first and last timed calls were made, in the clock’s
epoch; None if none were timed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SiteStats
impl RefUnwindSafe for SiteStats
impl Send for SiteStats
impl Sync for SiteStats
impl Unpin for SiteStats
impl UnsafeUnpin for SiteStats
impl UnwindSafe for SiteStats
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