pub enum DomainLevel {
Datacenter,
Zone,
Machine,
}Expand description
The level of a failure domain in the locality hierarchy.
Variants§
Datacenter
A whole datacenter.
Zone
A zone within a datacenter.
Machine
A single machine — the unit of shared fate.
Trait Implementations§
Source§impl Clone for DomainLevel
impl Clone for DomainLevel
Source§fn clone(&self) -> DomainLevel
fn clone(&self) -> DomainLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DomainLevel
Source§impl Debug for DomainLevel
impl Debug for DomainLevel
impl Eq for DomainLevel
Source§impl PartialEq for DomainLevel
impl PartialEq for DomainLevel
Source§fn eq(&self, other: &DomainLevel) -> bool
fn eq(&self, other: &DomainLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DomainLevel
Auto Trait Implementations§
impl Freeze for DomainLevel
impl RefUnwindSafe for DomainLevel
impl Send for DomainLevel
impl Sync for DomainLevel
impl Unpin for DomainLevel
impl UnsafeUnpin for DomainLevel
impl UnwindSafe for DomainLevel
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