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

ConnectedDisconnectedUnknownEstablishingConnectionProbeSentToPeerProbeReceivedFromPeerPeerInClusterAcceptedPeerRequestSentAndReceivedPeerRequestPeerRejectedPeerDetachInProgressConnectedToPeerPeerIsConnectedAndAcceptedInvalidState

Methods

impl State
[src]

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

impl Eq for State
[src]

impl PartialEq for State
[src]

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

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.

impl Hash for State
[src]

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

Feeds this value into the state given, updating the hasher as necessary.

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

Feeds a slice of this type into the state provided.

impl Clone for State
[src]

fn clone(&self) -> State

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for State
[src]

impl Debug for State
[src]

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

Formats the value using the given formatter.