pub struct ReplicaCount(/* private fields */);Expand description
A replication acknowledgement count greater than the local leader alone.
Implementations§
Source§impl ReplicaCount
impl ReplicaCount
Sourcepub fn try_new(value: usize) -> Result<Self, StoreContractViolation>
pub fn try_new(value: usize) -> Result<Self, StoreContractViolation>
Creates a replica count that necessarily requires at least one remote acknowledgement.
§Errors
Returns StoreContractViolation::HaInvalidReplicaCount when value is less than two.
Trait Implementations§
Source§impl Clone for ReplicaCount
impl Clone for ReplicaCount
impl Copy for ReplicaCount
Source§impl Debug for ReplicaCount
impl Debug for ReplicaCount
impl Eq for ReplicaCount
Source§impl Hash for ReplicaCount
impl Hash for ReplicaCount
Source§impl PartialEq for ReplicaCount
impl PartialEq for ReplicaCount
impl StructuralPartialEq for ReplicaCount
Auto Trait Implementations§
impl Forget for ReplicaCount
impl Freeze for ReplicaCount
impl Move for ReplicaCount
impl RefUnwindSafe for ReplicaCount
impl Send for ReplicaCount
impl Sync for ReplicaCount
impl Unpin for ReplicaCount
impl UnsafeUnpin for ReplicaCountwhere
NonZeroUsizeInner: UnsafeUnpin,
impl UnwindSafe for ReplicaCount
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