pub struct Counter {
pub count: u32,
pub delta: i32,
}Expand description
A cumulative status event counter with a per-notification delta.
Appears in status types to report both the running total of an event and how many times it occurred since the last time the status was read or taken.
Fields§
§count: u32Total number of times the event has occurred.
delta: i32Change in count since the status was last read or taken.
Trait Implementations§
impl Copy for Counter
impl Eq for Counter
impl StructuralPartialEq for Counter
Auto Trait Implementations§
impl Freeze for Counter
impl RefUnwindSafe for Counter
impl Send for Counter
impl Sync for Counter
impl Unpin for Counter
impl UnsafeUnpin for Counter
impl UnwindSafe for Counter
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