#[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
sourceimpl Clone for TopologyType
impl Clone for TopologyType
sourcefn clone(&self) -> TopologyType
fn clone(&self) -> TopologyType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TopologyType
impl Debug for TopologyType
sourceimpl Default for TopologyType
impl Default for TopologyType
sourceimpl<'de> Deserialize<'de> for TopologyType
impl<'de> Deserialize<'de> for TopologyType
sourcefn 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
sourceimpl PartialEq<TopologyType> for TopologyType
impl PartialEq<TopologyType> for TopologyType
impl Copy for TopologyType
impl Eq for TopologyType
impl StructuralEq for TopologyType
impl StructuralPartialEq for TopologyType
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.