Enum garage_rpc::layout::ZoneRedundancy
source · pub enum ZoneRedundancy {
AtLeast(usize),
Maximum,
}
Expand description
Zone redundancy: if set to AtLeast(x), the layout calculation will aim to store copies of each partition on at least that number of different zones. Otherwise, copies will be stored on the maximum possible number of zones.
Variants§
Trait Implementations§
source§impl Clone for ZoneRedundancy
impl Clone for ZoneRedundancy
source§fn clone(&self) -> ZoneRedundancy
fn clone(&self) -> ZoneRedundancy
Returns a copy 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 ZoneRedundancy
impl Debug for ZoneRedundancy
source§impl<'de> Deserialize<'de> for ZoneRedundancy
impl<'de> Deserialize<'de> for ZoneRedundancy
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 Display for ZoneRedundancy
impl Display for ZoneRedundancy
source§impl FromStr for ZoneRedundancy
impl FromStr for ZoneRedundancy
source§impl Ord for ZoneRedundancy
impl Ord for ZoneRedundancy
source§fn cmp(&self, other: &ZoneRedundancy) -> Ordering
fn cmp(&self, other: &ZoneRedundancy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ZoneRedundancy
impl PartialEq for ZoneRedundancy
source§fn eq(&self, other: &ZoneRedundancy) -> bool
fn eq(&self, other: &ZoneRedundancy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ZoneRedundancy
impl PartialOrd for ZoneRedundancy
source§fn partial_cmp(&self, other: &ZoneRedundancy) -> Option<Ordering>
fn partial_cmp(&self, other: &ZoneRedundancy) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for ZoneRedundancy
impl Serialize for ZoneRedundancy
impl Copy for ZoneRedundancy
impl Eq for ZoneRedundancy
impl StructuralPartialEq for ZoneRedundancy
Auto Trait Implementations§
impl Freeze for ZoneRedundancy
impl RefUnwindSafe for ZoneRedundancy
impl Send for ZoneRedundancy
impl Sync for ZoneRedundancy
impl Unpin for ZoneRedundancy
impl UnwindSafe for ZoneRedundancy
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.