pub struct Observation {
pub events: u64,
pub heap: i64,
pub charged: i64,
pub peak_above_arm: i64,
pub max_residual: i64,
pub max_at: u64,
pub first_violation: Option<Violation>,
}Expand description
One event’s view of the ledger, or a reading of it: one state.
Fields§
§events: u64Events since the last Ledger::arm.
heap: i64The registered threads’ live heap, in the charge unit.
charged: i64The charges held.
peak_above_arm: i64The most heap has been since the arm, above its value there.
max_residual: i64The most any event since the arm saw of the residual: the heap’s rise since the arm less the charges’ rise (0 at the arm).
max_at: u64The event that saw Self::max_residual (0: the arm itself).
first_violation: Option<Violation>The first event whose residual passed the allowance.
Trait Implementations§
Source§impl Clone for Observation
impl Clone for Observation
impl Copy for Observation
Source§impl Debug for Observation
impl Debug for Observation
Source§impl Default for Observation
impl Default for Observation
impl Eq for Observation
Source§impl PartialEq for Observation
impl PartialEq for Observation
impl StructuralPartialEq for Observation
Auto Trait Implementations§
impl Forget for Observation
impl Freeze for Observation
impl Move for Observation
impl RefUnwindSafe for Observation
impl Send for Observation
impl Sync for Observation
impl Unpin for Observation
impl UnsafeUnpin for Observation
impl UnwindSafe for Observation
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