pub struct VersionVectorLimits {
pub max_authors: Option<usize>,
pub max_zero_replicas: Option<usize>,
}Expand description
Optional collection budgets for VersionVector::from_peer_prefixes_with_limits.
Fields§
Maximum positive-prefix entries. None is unbounded; Some(0) requires none.
max_zero_replicas: Option<usize>Maximum sequence-zero acknowledgements, independently of prefix entries.
None is unbounded; Some(0) requires none.
Implementations§
Source§impl VersionVectorLimits
impl VersionVectorLimits
Sourcepub const WIRE_DEFAULT: Self
pub const WIRE_DEFAULT: Self
Default wire entry ceilings. Callers can supply tighter or larger budgets
with VersionVector::from_wire_bytes_with_limits.
Trait Implementations§
Source§impl Clone for VersionVectorLimits
impl Clone for VersionVectorLimits
Source§fn clone(&self) -> VersionVectorLimits
fn clone(&self) -> VersionVectorLimits
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 VersionVectorLimits
impl Debug for VersionVectorLimits
Source§impl Default for VersionVectorLimits
impl Default for VersionVectorLimits
Source§fn default() -> VersionVectorLimits
fn default() -> VersionVectorLimits
Returns the “default value” for a type. Read more
Source§impl PartialEq for VersionVectorLimits
impl PartialEq for VersionVectorLimits
Source§fn eq(&self, other: &VersionVectorLimits) -> bool
fn eq(&self, other: &VersionVectorLimits) -> bool
Tests for
self and other values to be equal, and is used by ==.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
Tests for
!=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.impl Copy for VersionVectorLimits
impl Eq for VersionVectorLimits
impl StructuralPartialEq for VersionVectorLimits
Auto Trait Implementations§
impl Freeze for VersionVectorLimits
impl RefUnwindSafe for VersionVectorLimits
impl Send for VersionVectorLimits
impl Sync for VersionVectorLimits
impl Unpin for VersionVectorLimits
impl UnsafeUnpin for VersionVectorLimits
impl UnwindSafe for VersionVectorLimits
Blanket Implementations§
Source§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
Source§fn type_id(&self) -> TypeId
fn type_id(&self) -> TypeId
Gets the
TypeId of self. Read moreSource§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
Source§fn borrow(&self) -> &T
fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
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,
Source§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Performs copy-assignment from
self to dest. Read moreSource§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
Source§fn into(self) -> U
fn into(self) -> U
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.