Enum mongodb::TopologyType [−][src]
#[non_exhaustive]
pub enum TopologyType {
Single,
ReplicaSetNoPrimary,
ReplicaSetWithPrimary,
Sharded,
LoadBalanced,
Unknown,
}
Expand description
The possible types for a topology.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Single
A single mongod server.
ReplicaSetNoPrimary
A replica set with no primary.
ReplicaSetWithPrimary
A replica set with a primary.
Sharded
A sharded topology.
LoadBalanced
A load balanced topology.
Unknown
A topology whose type is not known.
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 TopologyType
impl Send for TopologyType
impl Sync for TopologyType
impl Unpin for TopologyType
impl UnwindSafe for TopologyType
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.