pub struct ReplicaSet {
pub data_id: String,
pub replicas: Vec<Replica>,
pub primary: Option<WorkerId>,
pub version: u64,
pub created_at: Instant,
pub last_updated: Instant,
pub size_bytes: u64,
}Expand description
Replica set for a data item.
Fields§
§data_id: StringData ID
replicas: Vec<Replica>Replica locations
primary: Option<WorkerId>Primary replica (for write coordination)
version: u64Data version
created_at: InstantCreated at
last_updated: InstantLast updated
size_bytes: u64Data size (bytes)
Trait Implementations§
Source§impl Clone for ReplicaSet
impl Clone for ReplicaSet
Source§fn clone(&self) -> ReplicaSet
fn clone(&self) -> ReplicaSet
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 moreAuto Trait Implementations§
impl Freeze for ReplicaSet
impl RefUnwindSafe for ReplicaSet
impl Send for ReplicaSet
impl Sync for ReplicaSet
impl Unpin for ReplicaSet
impl UnsafeUnpin for ReplicaSet
impl UnwindSafe for ReplicaSet
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