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 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) -> bool
1.0.0
This method tests for !=
.