pub enum PrimaryReselectPolicy {
Always,
Better,
Failure,
}Expand description
Set the reselection policy for the primary slave. On failure of the active slave, the system will use this policy to decide how the new active slave will be chosen and how recovery will be handled. The possible values are always, better, and failure.
Variants§
Trait Implementations§
Source§impl Clone for PrimaryReselectPolicy
impl Clone for PrimaryReselectPolicy
Source§fn clone(&self) -> PrimaryReselectPolicy
fn clone(&self) -> PrimaryReselectPolicy
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 PrimaryReselectPolicy
impl Debug for PrimaryReselectPolicy
Source§impl<'de> Deserialize<'de> for PrimaryReselectPolicy
impl<'de> Deserialize<'de> for PrimaryReselectPolicy
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 PartialEq for PrimaryReselectPolicy
impl PartialEq for PrimaryReselectPolicy
Source§impl Serialize for PrimaryReselectPolicy
impl Serialize for PrimaryReselectPolicy
impl Eq for PrimaryReselectPolicy
impl StructuralPartialEq for PrimaryReselectPolicy
Auto Trait Implementations§
impl Freeze for PrimaryReselectPolicy
impl RefUnwindSafe for PrimaryReselectPolicy
impl Send for PrimaryReselectPolicy
impl Sync for PrimaryReselectPolicy
impl Unpin for PrimaryReselectPolicy
impl UnwindSafe for PrimaryReselectPolicy
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