pub struct ReplayBaselineRetirementProof {
pub authority: RetainedReplaySnapshotAuthority,
pub current_cut: StoreHistoryCut,
pub current_state: StoreDeviceStateRef,
pub current_device_state: ResolvedStoreDeviceState,
pub current_membership: StoreMembershipStateRef,
pub membership_witness: ReplayRetirementMembershipWitness,
pub current_registrations: BTreeMap<StoreDeviceId, ReferencedStoreDeviceRegistration>,
pub acknowledgements: BTreeMap<StoreDeviceId, RetainedAcknowledgementChain>,
}Expand description
The evidence required to retire local replay inputs behind one snapshot.
Cloud reclaim asks whether the devices active at the snapshot have made the exact snapshot promise. Local retirement asks a stronger and different question: whether every writer active now has crossed that cut, including a writer activated after the snapshot. Keeping the proofs separate prevents the local ordering rule from changing which cloud objects may be reclaimed.
Fields§
§current_cut: StoreHistoryCut§current_state: StoreDeviceStateRef§current_device_state: ResolvedStoreDeviceState§current_membership: StoreMembershipStateRef§membership_witness: ReplayRetirementMembershipWitness§current_registrations: BTreeMap<StoreDeviceId, ReferencedStoreDeviceRegistration>§acknowledgements: BTreeMap<StoreDeviceId, RetainedAcknowledgementChain>Implementations§
Source§impl ReplayBaselineRetirementProof
impl ReplayBaselineRetirementProof
pub fn validate( &self, membership: &MembershipChain, ) -> Result<BTreeSet<StoreDeviceId>, StoreProtocolError>
Trait Implementations§
Source§impl Clone for ReplayBaselineRetirementProof
impl Clone for ReplayBaselineRetirementProof
Source§fn clone(&self) -> ReplayBaselineRetirementProof
fn clone(&self) -> ReplayBaselineRetirementProof
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for ReplayBaselineRetirementProof
impl<'de> Deserialize<'de> for ReplayBaselineRetirementProof
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 ReplayBaselineRetirementProof
impl PartialEq for ReplayBaselineRetirementProof
Source§fn eq(&self, other: &ReplayBaselineRetirementProof) -> bool
fn eq(&self, other: &ReplayBaselineRetirementProof) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReplayBaselineRetirementProof
impl StructuralPartialEq for ReplayBaselineRetirementProof
Auto Trait Implementations§
impl !Freeze for ReplayBaselineRetirementProof
impl RefUnwindSafe for ReplayBaselineRetirementProof
impl Send for ReplayBaselineRetirementProof
impl Sync for ReplayBaselineRetirementProof
impl Unpin for ReplayBaselineRetirementProof
impl UnsafeUnpin for ReplayBaselineRetirementProof
impl UnwindSafe for ReplayBaselineRetirementProof
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.