Enum mongodb::topology::server::ServerType [] [src]

pub enum ServerType {
    Standalone,
    Mongos,
    RSPrimary,
    RSSecondary,
    RSArbiter,
    RSOther,
    RSGhost,
    Unknown,
}

Describes the server role within a server set.

Variants

Standalone

Standalone server.

Mongos

Shard router.

RSPrimary

Replica set primary.

RSSecondary

Replica set secondary.

RSArbiter

Replica set arbiter.

RSOther

Replica set member of some other type.

RSGhost

Replica set ghost member.

Unknown

Server type is currently unknown.

Trait Implementations

impl Eq for ServerType
[src]

impl PartialEq for ServerType
[src]

fn eq(&self, __arg_0: &ServerType) -> 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 Debug for ServerType
[src]

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

Formats the value using the given formatter.

impl Copy for ServerType
[src]

impl Clone for ServerType
[src]

fn clone(&self) -> ServerType

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 FromStr for ServerType
[src]

type Err = Error

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self>

Parses a string s to return a value of this type. Read more