pub enum ProofStamp {
First,
Refreshed,
Unchanged,
}Expand description
What a mark_proven call did, so the caller knows whether a write is owed
and whether this was the first-ever proof for the key (worth an event).
Variants§
First
The key had never been proven; it is now. Write, and announce it.
Refreshed
Already proven, and the stamp was older than the re-stamp interval. Write, but there is nothing new to announce.
Unchanged
Already proven and re-stamped recently: nothing to do, no write.
Trait Implementations§
Source§impl Clone for ProofStamp
impl Clone for ProofStamp
impl Copy for ProofStamp
Source§impl Debug for ProofStamp
impl Debug for ProofStamp
impl Eq for ProofStamp
Source§impl PartialEq for ProofStamp
impl PartialEq for ProofStamp
impl StructuralPartialEq for ProofStamp
Auto Trait Implementations§
impl Freeze for ProofStamp
impl RefUnwindSafe for ProofStamp
impl Send for ProofStamp
impl Sync for ProofStamp
impl Unpin for ProofStamp
impl UnsafeUnpin for ProofStamp
impl UnwindSafe for ProofStamp
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.