Enum mongodb::ServerType [−][src]
#[non_exhaustive]
pub enum ServerType {
Standalone,
Mongos,
RsPrimary,
RsSecondary,
RsArbiter,
RsOther,
RsGhost,
LoadBalancer,
Unknown,
}
Expand description
Enum representing the possible types of servers that the driver can connect to.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Standalone
A single, non-replica set mongod.
Mongos
A router used in sharded deployments.
RsPrimary
The primary node in a replica set.
RsSecondary
A secondary node in a replica set.
RsArbiter
A non-data bearing node in a replica set which can participate in elections.
RsOther
Hidden, starting up, or recovering nodes in a replica set.
RsGhost
A member of an uninitialized replica set or a member that has been removed from the replica set config.
LoadBalancer
A load-balancing proxy between the driver and the MongoDB deployment.
Unknown
A server that the driver hasn’t yet communicated with or can’t connect to.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ServerType
impl Send for ServerType
impl Sync for ServerType
impl Unpin for ServerType
impl UnwindSafe for ServerType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.