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