pub struct SnapshotReferenceConfig {
pub node_id: u64,
pub default_voters: BTreeSet<u64>,
pub per_group_voters: BTreeMap<u32, BTreeSet<u64>>,
}Expand description
Node identities that may persist an external snapshot pointer for each group. S3 pruning is enabled only after every expected voter has published its current reference, which makes rolling upgrades fail closed.
Fields§
§node_id: u64§default_voters: BTreeSet<u64>§per_group_voters: BTreeMap<u32, BTreeSet<u64>>Trait Implementations§
Source§impl Clone for SnapshotReferenceConfig
impl Clone for SnapshotReferenceConfig
Source§fn clone(&self) -> SnapshotReferenceConfig
fn clone(&self) -> SnapshotReferenceConfig
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 moreAuto Trait Implementations§
impl Freeze for SnapshotReferenceConfig
impl RefUnwindSafe for SnapshotReferenceConfig
impl Send for SnapshotReferenceConfig
impl Sync for SnapshotReferenceConfig
impl Unpin for SnapshotReferenceConfig
impl UnsafeUnpin for SnapshotReferenceConfig
impl UnwindSafe for SnapshotReferenceConfig
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