pub struct ReplicaSetLocator {
pub version: u8,
pub generation: u64,
pub replicas: Vec<MemRegionLocator>,
}Expand description
Locator for a replicated set of memory regions.
Contains a list of MemRegionLocators that point to identical copies
of the same data. The generation field increments when the replica set
membership changes.
Fields§
§version: u8Schema version for this locator type.
generation: u64Replica set generation.
replicas: Vec<MemRegionLocator>Replica locations carrying equivalent content.
Implementations§
Source§impl ReplicaSetLocator
impl ReplicaSetLocator
Sourcepub fn new(generation: u64, replicas: Vec<MemRegionLocator>) -> Self
pub fn new(generation: u64, replicas: Vec<MemRegionLocator>) -> Self
Create a new v1 replica set locator.
Trait Implementations§
Source§impl Clone for ReplicaSetLocator
impl Clone for ReplicaSetLocator
Source§fn clone(&self) -> ReplicaSetLocator
fn clone(&self) -> ReplicaSetLocator
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 ReplicaSetLocator
impl Debug for ReplicaSetLocator
Source§impl<'de> Deserialize<'de> for ReplicaSetLocator
impl<'de> Deserialize<'de> for ReplicaSetLocator
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 ReplicaSetLocator
impl PartialEq for ReplicaSetLocator
Source§impl Serialize for ReplicaSetLocator
impl Serialize for ReplicaSetLocator
impl StructuralPartialEq for ReplicaSetLocator
Auto Trait Implementations§
impl Freeze for ReplicaSetLocator
impl RefUnwindSafe for ReplicaSetLocator
impl Send for ReplicaSetLocator
impl Sync for ReplicaSetLocator
impl Unpin for ReplicaSetLocator
impl UnwindSafe for ReplicaSetLocator
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