pub struct Mirror { /* private fields */ }Expand description
A mirror of a monotone tally kept somewhere else.
Producers that copy someone else’s counters — the MAC’s, the PHY’s — hold one of these per source field and feed the ledger the difference since the last pass, so the ledger only ever sees additions. A source that goes backwards (a counter reconstructed, a peripheral restarted) contributes nothing rather than a nonsensical jump.
Implementations§
Trait Implementations§
impl Copy for Mirror
Auto Trait Implementations§
impl Freeze for Mirror
impl RefUnwindSafe for Mirror
impl Send for Mirror
impl Sync for Mirror
impl Unpin for Mirror
impl UnwindSafe for Mirror
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)