Struct OverBudget
#[non_exhaustive]pub struct OverBudget {
pub point: &'static str,
pub took: Duration,
pub budget: Duration,
pub listeners: Vec<(String, Duration)>,
}Expand description
A pass of a point’s listeners that went over its budget
(PointSpec::budget): reported to the budget sinks
(Timings::add_budget_sink). The
pass’s results were kept: a budget is not a deadline.
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.point: &'static strThe point.
took: DurationThe pass’s time: its listeners’ times added up.
budget: DurationThe point’s budget.
listeners: Vec<(String, Duration)>Each listener that ran in the pass, in order, with its time.
Implementations§
Trait Implementations§
§impl Clone for OverBudget
impl Clone for OverBudget
§fn clone(&self) -> OverBudget
fn clone(&self) -> OverBudget
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 more§impl Debug for OverBudget
impl Debug for OverBudget
§impl Display for OverBudget
impl Display for OverBudget
§impl PartialEq for OverBudget
impl PartialEq for OverBudget
impl Eq for OverBudget
impl StructuralPartialEq for OverBudget
Auto Trait Implementations§
impl Freeze for OverBudget
impl RefUnwindSafe for OverBudget
impl Send for OverBudget
impl Sync for OverBudget
impl Unpin for OverBudget
impl UnsafeUnpin for OverBudget
impl UnwindSafe for OverBudget
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