pub enum SentinelServerType {
Master,
Replica,
}
Expand description
This type is a wrapper for redis::sentinel::SentinelServerType
for serialize/deserialize.
Variants§
Trait Implementations§
source§impl Clone for SentinelServerType
impl Clone for SentinelServerType
source§fn clone(&self) -> SentinelServerType
fn clone(&self) -> SentinelServerType
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 SentinelServerType
impl Debug for SentinelServerType
source§impl Default for SentinelServerType
impl Default for SentinelServerType
source§fn default() -> SentinelServerType
fn default() -> SentinelServerType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SentinelServerType
impl<'de> Deserialize<'de> for SentinelServerType
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 From<SentinelServerType> for SentinelServerType
impl From<SentinelServerType> for SentinelServerType
source§fn from(value: SentinelServerType) -> Self
fn from(value: SentinelServerType) -> Self
Converts to this type from the input type.
source§impl From<SentinelServerType> for SentinelServerType
impl From<SentinelServerType> for SentinelServerType
source§fn from(value: SentinelServerType) -> Self
fn from(value: SentinelServerType) -> Self
Converts to this type from the input type.
source§impl Serialize for SentinelServerType
impl Serialize for SentinelServerType
impl Copy for SentinelServerType
Auto Trait Implementations§
impl Freeze for SentinelServerType
impl RefUnwindSafe for SentinelServerType
impl Send for SentinelServerType
impl Sync for SentinelServerType
impl Unpin for SentinelServerType
impl UnwindSafe for SentinelServerType
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)