[][src]Enum gcp_client::google::cloud::redis::v1beta1::failover_instance_request::DataProtectionMode

#[repr(i32)]pub enum DataProtectionMode {
    Unspecified,
    LimitedDataLoss,
    ForceDataLoss,
}

Specifies different modes of operation in relation to the data retention.

Variants

Unspecified

Defaults to LIMITED_DATA_LOSS if a data protection mode is not specified.

LimitedDataLoss

Instance failover will be protected with data loss control. More specifically, the failover will only be performed if the current replication offset diff between master and replica is under a certain threshold.

ForceDataLoss

Instance failover will be performed without data loss control.

Implementations

impl DataProtectionMode[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of DataProtectionMode.

pub fn from_i32(value: i32) -> Option<DataProtectionMode>[src]

Converts an i32 to a DataProtectionMode, or None if value is not a valid variant.

Trait Implementations

impl Clone for DataProtectionMode[src]

impl Copy for DataProtectionMode[src]

impl Debug for DataProtectionMode[src]

impl Default for DataProtectionMode[src]

impl Eq for DataProtectionMode[src]

impl From<DataProtectionMode> for i32[src]

impl Hash for DataProtectionMode[src]

impl Ord for DataProtectionMode[src]

impl PartialEq<DataProtectionMode> for DataProtectionMode[src]

impl PartialOrd<DataProtectionMode> for DataProtectionMode[src]

impl StructuralEq for DataProtectionMode[src]

impl StructuralPartialEq for DataProtectionMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]