pub enum PolicyType {
MaxAvailability,
LowLatency,
}
Expand description
Select the behavior of the placement group, either low_latency (group) or max_availability (spread)
Variants§
Trait Implementations§
source§impl Clone for PolicyType
impl Clone for PolicyType
source§fn clone(&self) -> PolicyType
fn clone(&self) -> PolicyType
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 PolicyType
impl Debug for PolicyType
source§impl Default for PolicyType
impl Default for PolicyType
source§fn default() -> PolicyType
fn default() -> PolicyType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PolicyType
impl<'de> Deserialize<'de> for PolicyType
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 Hash for PolicyType
impl Hash for PolicyType
source§impl Ord for PolicyType
impl Ord for PolicyType
source§fn cmp(&self, other: &PolicyType) -> Ordering
fn cmp(&self, other: &PolicyType) -> 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<PolicyType> for PolicyType
impl PartialEq<PolicyType> for PolicyType
source§fn eq(&self, other: &PolicyType) -> bool
fn eq(&self, other: &PolicyType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PolicyType> for PolicyType
impl PartialOrd<PolicyType> for PolicyType
source§fn partial_cmp(&self, other: &PolicyType) -> Option<Ordering>
fn partial_cmp(&self, other: &PolicyType) -> 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 PolicyType
impl Serialize for PolicyType
impl Copy for PolicyType
impl Eq for PolicyType
impl StructuralEq for PolicyType
impl StructuralPartialEq for PolicyType
Auto Trait Implementations§
impl RefUnwindSafe for PolicyType
impl Send for PolicyType
impl Sync for PolicyType
impl Unpin for PolicyType
impl UnwindSafe for PolicyType
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.