Enum gluster::State [] [src]

pub enum State {
    Connected,
    Disconnected,
    Unknown,
    EstablishingConnection,
    ProbeSentToPeer,
    ProbeReceivedFromPeer,
    PeerInCluster,
    AcceptedPeerRequest,
    SentAndReceivedPeerRequest,
    PeerRejected,
    PeerDetachInProgress,
    ConnectedToPeer,
    PeerIsConnectedAndAccepted,
    InvalidState,
}

A enum representing the possible States that a Peer can be in

Variants

Connected
Disconnected
Unknown
EstablishingConnection
ProbeSentToPeer
ProbeReceivedFromPeer
PeerInCluster
AcceptedPeerRequest
SentAndReceivedPeerRequest
PeerRejected
PeerDetachInProgress
ConnectedToPeer
PeerIsConnectedAndAccepted
InvalidState

Methods

impl State

fn new(name: &str) -> State

Create a new State object from a &str

fn to_string(self) -> String

Return a string representation of the State

Trait Implementations

Derived Implementations

impl Eq for State

impl PartialEq for State

fn eq(&self, __arg_0: &State) -> bool

fn ne(&self, __arg_0: &State) -> bool

impl Hash for State

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Clone for State

fn clone(&self) -> State

fn clone_from(&mut self, source: &Self)

impl Copy for State

impl Debug for State

fn fmt(&self, __arg_0: &mut Formatter) -> Result