[−][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]
impl ServerDescriptionpub fn new() -> ServerDescription[src]
pub fn new() -> ServerDescriptionReturns a default, unknown server description.
pub fn update(&mut self, ismaster: IsMasterResult, round_trip_time: i64)[src]
pub fn update(&mut self, ismaster: IsMasterResult, round_trip_time: i64)pub fn set_err(&mut self, err: Error)[src]
pub fn set_err(&mut self, err: Error)pub fn clear(&mut self)[src]
pub fn clear(&mut self)Trait Implementations
impl Default for ServerDescription[src]
impl Default for ServerDescriptionfn default() -> ServerDescription[src]
fn default() -> ServerDescriptionReturns the "default value" for a type. Read more
impl Clone for ServerDescription[src]
impl Clone for ServerDescriptionfn clone(&self) -> ServerDescription[src]
fn clone(&self) -> ServerDescriptionReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for ServerDescription[src]
impl Debug for ServerDescriptionAuto Trait Implementations
impl Send for ServerDescription
impl Send for ServerDescriptionimpl Sync for ServerDescription
impl Sync for ServerDescriptionBlanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 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]
impl<T> From for Timpl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 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, U> TryInto for T where
U: TryFrom<T>, impl<T> Same for T
impl<T> Same for Ttype Output = T
Should always be Self