[−][src]Struct mongodb::topology::server::ServerDescription
Server information gathered from server monitoring.
Fields
server_type: ServerType
The server type.
err: Arc<Option<Error>>
Any error encountered while monitoring this server.
round_trip_time: Option<i64>
The average round-trip time over the last 5 monitoring checks.
min_wire_version: i64
The minimum wire version supported by this server.
max_wire_version: i64
The maximum wire version supported by this server.
me: Option<Host>
The server's host information, if it is part of a replica set.
hosts: Vec<Host>
All hosts in the replica set known by this server.
passives: Vec<Host>
All passive members of the replica set known by this server.
arbiters: Vec<Host>
All arbiters in the replica set known by this server.
Server tags for targeted read operations on specific replica set members.
set_name: String
The replica set name.
election_id: Option<ObjectId>
The server's current election id, if it believes it is a primary.
primary: Option<Host>
The server's opinion of who the primary is.
set_version: Option<i64>
The current replica set version number.
Methods
impl ServerDescription
[src]
pub fn new() -> ServerDescription
[src]
Returns a default, unknown server description.
pub fn update(&mut self, ismaster: IsMasterResult, round_trip_time: i64)
[src]
pub fn set_err(&mut self, err: Error)
[src]
pub fn clear(&mut self)
[src]
Trait Implementations
impl Default for ServerDescription
[src]
fn default() -> ServerDescription
[src]
impl Clone for ServerDescription
[src]
fn clone(&self) -> ServerDescription
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ServerDescription
[src]
Auto Trait Implementations
impl Unpin for ServerDescription
impl Sync for ServerDescription
impl Send for ServerDescription
impl !UnwindSafe for ServerDescription
impl !RefUnwindSafe for ServerDescription
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> Same<T> for T
type Output = T
Should always be Self