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

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 Default for ServerDescription
[src]

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

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

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

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

impl<T> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 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)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 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)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 

impl<T> Same for T

Should always be Self