Struct mongodb::topology::server::ServerDescription[][src]

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.

Fields

The server type.

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 replica set name.

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.

Methods

impl ServerDescription
[src]

Returns a default, unknown server description.

Trait Implementations

impl Clone for ServerDescription
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ServerDescription
[src]

Formats the value using the given formatter. Read more

impl Default for ServerDescription
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations