pub struct ServerDescription {
pub server_type: ServerType,
pub err: Arc<Option<Error>>,
pub round_trip_time: Option<i64>,
pub min_wire_version: i64,
pub max_wire_version: i64,
pub me: Option<Host>,
pub hosts: Vec<Host>,
pub passives: Vec<Host>,
pub arbiters: Vec<Host>,
pub tags: BTreeMap<String, String>,
pub set_name: String,
pub election_id: Option<ObjectId>,
pub primary: Option<Host>,
pub set_version: Option<i64>,
}
Server information gathered from server monitoring.
Any error encountered while monitoring this server.
The average round-trip time over the last 5 monitoring checks.
The minimum wire version supported by this server.
The maximum wire version supported by this server.
The server's host information, if it is part of a replica set.
All hosts in the replica set known by this server.
All passive members of the replica set known by this server.
All arbiters in the replica set known by this server.
Server tags for targeted read operations on specific replica set members.
The server's current election id, if it believes it is a primary.
The server's opinion of who the primary is.
The current replica set version number.
Returns a default, unknown server description.
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
impl<T, U> TryInto for T where U: TryFrom<T>, | |
type Err = <U as TryFrom<T>>::Err