pub struct Redundancy(pub u8);Expand description
Redundancy level for data storage.
Tuple Fields§
§0: u8Implementations§
Source§impl Redundancy
impl Redundancy
Sourcepub const TEMP: Redundancy
pub const TEMP: Redundancy
Temporary data, no replication.
Sourcepub const SINGLE: Redundancy
pub const SINGLE: Redundancy
Single replica.
Sourcepub const EDGE: Redundancy
pub const EDGE: Redundancy
Edge computing level redundancy.
Sourcepub const SAFE: Redundancy
pub const SAFE: Redundancy
Safe level redundancy.
Sourcepub const TRUTH: Redundancy
pub const TRUTH: Redundancy
Truth level (high availability).
Sourcepub fn from_u8(v: u8) -> Redundancy
pub fn from_u8(v: u8) -> Redundancy
Create from u8.
Trait Implementations§
Source§impl Clone for Redundancy
impl Clone for Redundancy
Source§fn clone(&self) -> Redundancy
fn clone(&self) -> Redundancy
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 Redundancy
impl Debug for Redundancy
Source§impl<'de> Deserialize<'de> for Redundancy
impl<'de> Deserialize<'de> for Redundancy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Redundancy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Redundancy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for Redundancy
impl Hash for Redundancy
Source§impl Ord for Redundancy
impl Ord for Redundancy
Source§fn cmp(&self, other: &Redundancy) -> Ordering
fn cmp(&self, other: &Redundancy) -> 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 Redundancy
impl PartialEq for Redundancy
Source§impl PartialOrd for Redundancy
impl PartialOrd for Redundancy
Source§impl Serialize for Redundancy
impl Serialize for Redundancy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Redundancy
impl Eq for Redundancy
impl StructuralPartialEq for Redundancy
Auto Trait Implementations§
impl Freeze for Redundancy
impl RefUnwindSafe for Redundancy
impl Send for Redundancy
impl Sync for Redundancy
impl Unpin for Redundancy
impl UnsafeUnpin for Redundancy
impl UnwindSafe for Redundancy
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