pub struct EditPhase {
pub name: &'static str,
pub start: EditStamp,
pub end: EditStamp,
pub wall_ns: u64,
pub cpu_ns: u64,
pub recorded: bool,
pub completed: bool,
pub valid: bool,
}Expand description
Disjoint interval in one preparation or finish call, including its bookkeeping.
Fields§
§name: &'static strFixed phase identifier, in execution order within its containing array.
start: EditStampOpening clock sample; consecutive recorded phases share their boundary.
end: EditStampClosing clock sample, including partial work when unwinding.
wall_ns: u64Elapsed wall nanoseconds, including instrumentation; zero when invalid.
cpu_ns: u64Elapsed process CPU nanoseconds, including instrumentation; zero when invalid.
recorded: boolWhether this phase was entered and its closing boundary was recorded.
completed: boolWhether this interval finished normally rather than during unwinding.
valid: boolWhether both boundary samples succeeded and neither clock decreased.
Trait Implementations§
Auto Trait Implementations§
impl Forget for EditPhase
impl Freeze for EditPhase
impl Move for EditPhase
impl RefUnwindSafe for EditPhase
impl Send for EditPhase
impl Sync for EditPhase
impl Unpin for EditPhase
impl UnsafeUnpin for EditPhase
impl UnwindSafe for EditPhase
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