/// Whether this topology has a readable server available that satisfies the specified selection
/// criteria.
Whether this topology has a readable server available that satisfies the specified selection
criteria.
Whether this topology has a readable server available that satisfies the specified selection criteria .
pub fn has_readable_server(&self, selection_criteria: Option<SelectionCriteria>) -> bool {
        match self.description.suitable_servers_in_latency_window(
            &selection_criteria
                .unwrap_or(SelectionCriteria::ReadPreference(ReadPreference::Primary)),
        ) {
            Ok(servers) => !servers.is_empty(),
            Err(_) => false,
        }
    }
pub fn has_readable_server ( & self , selection_criteria : Option < SelectionCriteria > ) -> bool { match self . description . suitable_servers_in_latency_window ( & selection_criteria . unwrap_or ( SelectionCriteria :: ReadPreference ( ReadPreference :: Primary ) ) , ) { Ok ( servers ) => ! servers . is_empty ( ) , Err ( _ ) => false , } }
Whether this topology has a readable server available that satisfies the specified selection
criteria.
Whether this topology has a readable server available that satisfies the specified selection criteria .
&self
selection_criteria
Option<SelectionCriteria>