pub struct SnapshotAnnouncement {
pub snapshot: SnapshotId,
pub covers: u64,
pub breaking_version: u32,
pub purpose: Purpose,
pub digest: [u8; 32],
}Expand description
A claimed announcement of an immutable snapshot body.
Fields§
§snapshot: SnapshotIdAudience, writer and object number forming the snapshot path.
covers: u64Last included slot; strictly below the announcing slot.
breaking_version: u32The version of the newest breaking migration the body went through, zero if none. Applying the announcement refuses one its audience has not been raised to by the coverage (§16.3).
purpose: PurposeOrdinary state or an admin operation’s preparation.
digest: [u8; 32]SHA-256 of the complete sealed snapshot object.
Implementations§
Trait Implementations§
Source§impl Clone for SnapshotAnnouncement
impl Clone for SnapshotAnnouncement
Source§fn clone(&self) -> SnapshotAnnouncement
fn clone(&self) -> SnapshotAnnouncement
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 Debug for SnapshotAnnouncement
impl Debug for SnapshotAnnouncement
Source§impl PartialEq for SnapshotAnnouncement
impl PartialEq for SnapshotAnnouncement
impl Eq for SnapshotAnnouncement
impl StructuralPartialEq for SnapshotAnnouncement
Auto Trait Implementations§
impl Freeze for SnapshotAnnouncement
impl RefUnwindSafe for SnapshotAnnouncement
impl Send for SnapshotAnnouncement
impl Sync for SnapshotAnnouncement
impl Unpin for SnapshotAnnouncement
impl UnsafeUnpin for SnapshotAnnouncement
impl UnwindSafe for SnapshotAnnouncement
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