fn base_topology(&self) -> Topology {
        if self.options.load_balanced.unwrap_or(false) {
            return Topology::LoadBalanced;
        }
        if self.server_info.msg.as_deref() == Some("isdbgrid") {
            return Topology::Sharded;
        }
        if self.options.repl_set_name.is_some() {
            return Topology::ReplicaSet;
        }
        Topology::Single
    }
/// Returns the `Topology' that can be determined without a server query, i.e. all except
/// `Toplogy::ShardedReplicaSet`.
Returns the `Topology' that can be determined without a server query, i.e.
Returns the ` Topology ' that can be determined without a server query i . e .
fn base_topology(&self) -> Topology {
        if self.options.load_balanced.unwrap_or(false) {
            return Topology::LoadBalanced;
        }
        if self.server_info.msg.as_deref() == Some("isdbgrid") {
            return Topology::Sharded;
        }
        if self.options.repl_set_name.is_some() {
            return Topology::ReplicaSet;
        }
        Topology::Single
    }
fn base_topology ( & self ) -> Topology { if self . options . load_balanced . unwrap_or ( false ) { return Topology :: LoadBalanced ; } if self . server_info . msg . as_deref ( ) == Some ( " " ) { return Topology :: Sharded ; } if self . options . repl_set_name . is_some ( ) { return Topology :: ReplicaSet ; } Topology :: Single }
Returns the `Topology' that can be determined without a server query, i.e.
Returns the ` Topology ' that can be determined without a server query i . e .
&self
&self