pub struct BudgetViolation {
pub category: String,
pub actual_ms: f64,
pub budget_ms: f64,
}Expand description
A single budget violation record.
Fields§
§category: String§actual_ms: f64§budget_ms: f64Implementations§
Source§impl BudgetViolation
impl BudgetViolation
pub fn overage_ms(&self) -> f64
pub fn overage_pct(&self) -> f64
Trait Implementations§
Source§impl Clone for BudgetViolation
impl Clone for BudgetViolation
Source§fn clone(&self) -> BudgetViolation
fn clone(&self) -> BudgetViolation
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 moreAuto Trait Implementations§
impl Freeze for BudgetViolation
impl RefUnwindSafe for BudgetViolation
impl Send for BudgetViolation
impl Sync for BudgetViolation
impl Unpin for BudgetViolation
impl UnsafeUnpin for BudgetViolation
impl UnwindSafe for BudgetViolation
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