[][src]Enum mongodb::topology::server::ServerType

pub enum ServerType {
    Standalone,
    Mongos,
    RSPrimary,
    RSSecondary,
    RSArbiter,
    RSOther,
    RSGhost,
    Unknown,
}

Describes the server role within a server set.

Variants

Standalone

Standalone server.

Mongos

Shard router.

RSPrimary

Replica set primary.

RSSecondary

Replica set secondary.

RSArbiter

Replica set arbiter.

RSOther

Replica set member of some other type.

RSGhost

Replica set ghost member.

Unknown

Server type is currently unknown.

Trait Implementations

impl Eq for ServerType[src]

impl Default for ServerType[src]

impl Clone for ServerType[src]

impl PartialEq<ServerType> for ServerType[src]

impl Copy for ServerType[src]

impl Hash for ServerType[src]

impl Debug for ServerType[src]

impl FromStr for ServerType[src]

type Err = Error

The associated error which can be returned from parsing.

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self