[][src]Struct iredismodule::cluster::ClusterNodeInfo

pub struct ClusterNodeInfo {
    pub ip: Option<String>,
    pub master_id: Option<String>,
    pub port: Option<i32>,
    pub flags: Option<i32>,
}

Cluster node info

Fields

ip: Option<String>master_id: Option<String>port: Option<i32>flags: Option<i32>

The list of flags reported is the following:

  • REDISMODULE_NODE_MYSELF This node
  • REDISMODULE_NODE_MASTER The node is a master
  • REDISMODULE_NODE_SLAVE The node is a replica
  • REDISMODULE_NODE_PFAIL We see the node as failing
  • REDISMODULE_NODE_FAIL The cluster agrees the node is failing
  • REDISMODULE_NODE_NOFAILOVER The slave is configured to never failover

Trait Implementations

impl Debug for ClusterNodeInfo[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<T> From<T> for T[src]

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

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.