[][src]Struct mongodb::connstring::Host

pub struct Host {
    pub host_name: String,
    pub ipc: String,
    pub port: u16,
}

Encapsulates the hostname and port of a host.

Fields

host_name: String

The hostname for this host.

ipc: String

The inter-process communication file path, if this is an IPC host.

port: u16

The port to communicate on.

Methods

impl Host[src]

pub fn has_ipc(&self) -> bool[src]

Trait Implementations

impl Clone for Host[src]

impl Eq for Host[src]

impl PartialEq<Host> for Host[src]

impl Debug for Host[src]

impl Hash for Host[src]

Auto Trait Implementations

impl Unpin for Host

impl Sync for Host

impl Send for Host

impl UnwindSafe for Host

impl RefUnwindSafe for Host

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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