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
StandaloneStandalone server.
MongosShard router.
RSPrimaryReplica set primary.
RSSecondaryReplica set secondary.
RSArbiterReplica set arbiter.
RSOtherReplica set member of some other type.
RSGhostReplica set ghost member.
UnknownServer type is currently unknown.
Trait Implementations
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 Copy for ServerType[src]
impl Debug 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) -> bool1.0.0
This method tests for !=.