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 server.

Shard router.

Replica set primary.

Replica set secondary.

Replica set arbiter.

Replica set member of some other type.

Replica set ghost member.

Server type is currently unknown.

Trait Implementations

impl Clone for ServerType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for ServerType
[src]

impl Debug for ServerType
[src]

Formats the value using the given formatter.

impl PartialEq for ServerType
[src]

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

This method tests for !=.

impl Eq for ServerType
[src]

impl FromStr for ServerType
[src]

The associated error which can be returned from parsing.

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