#[non_exhaustive]pub struct UnitPace {
pub quarters: [Duration; 4],
}Expand description
How long each quarter of one span’s reported units took, recorded only
when Profiler::set_report_timing is on and the span reported at least
four times. An estimate: each quarter ends where its last unit was
reported, interpolated between up to 32 sampled reports. The first starts
at the span’s start, so work before the first report counts toward it,
and a report that read the clock before reports already recorded counts
from its own reading on.
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.quarters: [Duration; 4]Wall time of each quarter of the units, in order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnitPace
impl RefUnwindSafe for UnitPace
impl Send for UnitPace
impl Sync for UnitPace
impl Unpin for UnitPace
impl UnsafeUnpin for UnitPace
impl UnwindSafe for UnitPace
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