pub struct WitnessState {
pub snapshot: ContentHash,
pub at: u64,
}Expand description
What one witness has attested, as the fold sees it after replaying
OpKind::CountersignSnapshot (D67).
One row per witness, not one per (witness, snapshot) pair. The
question worth answering is “how many witnesses have seen the
ref-state that is current”, and keeping only the latest bounds this
section by the witness population rather than by uptime — the D64
growth property, and the same trade View::vouches makes.
Everything older is still in the log, which is where history lives.
Fields§
§snapshot: ContentHashContent address of the snapshot this witness last attested.
at: u64Log sequence of the countersigning op.
Trait Implementations§
Source§impl Clone for WitnessState
impl Clone for WitnessState
Source§fn clone(&self) -> WitnessState
fn clone(&self) -> WitnessState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WitnessState
impl Debug for WitnessState
Source§impl<'de> Deserialize<'de> for WitnessState
impl<'de> Deserialize<'de> for WitnessState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for WitnessState
impl PartialEq for WitnessState
Source§fn eq(&self, other: &WitnessState) -> bool
fn eq(&self, other: &WitnessState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WitnessState
impl Serialize for WitnessState
impl Eq for WitnessState
impl StructuralPartialEq for WitnessState
Auto Trait Implementations§
impl Freeze for WitnessState
impl RefUnwindSafe for WitnessState
impl Send for WitnessState
impl Sync for WitnessState
impl Unpin for WitnessState
impl UnsafeUnpin for WitnessState
impl UnwindSafe for WitnessState
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