pub struct CommitBudgetReport {
pub tag: &'static str,
pub elapsed_ms: u32,
pub budget_ms: u32,
pub hard_wall_ms: u32,
pub breached: bool,
pub hard_wall_hit: bool,
pub deferred_stages: Vec<&'static str>,
pub charged_stages: Vec<(&'static str, u32)>,
}Expand description
Report snapshot produced by CommitBudgetGuard::into_report.
Callers embed this in their commit envelope and also feed it to the host’s metric sink.
Fields§
§tag: &'static strCaller tag, e.g. "gap-04-resolve-or-create".
elapsed_ms: u32Total wall-clock elapsed, in milliseconds.
budget_ms: u32Soft budget that was in effect.
hard_wall_ms: u32Hard wall that was in effect.
breached: boolTrue iff the soft budget was breached (but hard wall wasn’t hit).
hard_wall_hit: boolTrue iff the hard wall was hit (commit aborted).
deferred_stages: Vec<&'static str>Stages pushed to the deferred queue for next commit.
charged_stages: Vec<(&'static str, u32)>Ordered list of (stage, elapsed_ms_at_charge).
Trait Implementations§
Source§impl Clone for CommitBudgetReport
impl Clone for CommitBudgetReport
Source§fn clone(&self) -> CommitBudgetReport
fn clone(&self) -> CommitBudgetReport
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 CommitBudgetReport
impl Debug for CommitBudgetReport
Source§impl PartialEq for CommitBudgetReport
impl PartialEq for CommitBudgetReport
impl Eq for CommitBudgetReport
impl StructuralPartialEq for CommitBudgetReport
Auto Trait Implementations§
impl Freeze for CommitBudgetReport
impl RefUnwindSafe for CommitBudgetReport
impl Send for CommitBudgetReport
impl Sync for CommitBudgetReport
impl Unpin for CommitBudgetReport
impl UnsafeUnpin for CommitBudgetReport
impl UnwindSafe for CommitBudgetReport
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