Type Definition mongodb::options::Predicate [−][src]
pub type Predicate = Arc<dyn Send + Sync + Fn(&ServerInfo<'_>) -> bool>;
This is supported on crate feature
tokio-runtime
and non-crate feature async-std-runtime
, or non-crate feature tokio-runtime
and crate feature async-std-runtime
only.Expand description
A predicate used to filter servers that are considered suitable.