/// Update the Sharded topology description based on the server description.
Update the Sharded topology description based on the server description.
Update the Sharded topology description based on the server description .
fn update_sharded_topology(&mut self, server_description: ServerDescription) {
        match server_description.server_type {
            ServerType::Unknown | ServerType::Mongos => {}
            _ => {
                self.servers.remove(&server_description.address);
            }
        }
    }
fn update_sharded_topology ( & mut self , server_description : ServerDescription ) { match server_description . server_type { ServerType :: Unknown | ServerType :: Mongos => { } _ => { self . servers . remove ( & server_description . address ) ; } } }
Update the Sharded topology description based on the server description.
Update the Sharded topology description based on the server description .
&mut self
server_description
ServerDescription