Struct mongors::connstring::Host [−][src]
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]
impl Host
Trait Implementations
impl Debug for Host
[src]
impl Debug for Host
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Host
[src]
impl Clone for Host
fn clone(&self) -> Host
[src]
fn clone(&self) -> Host
Returns 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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl PartialEq for Host
[src]
impl PartialEq for Host
fn eq(&self, other: &Host) -> bool
[src]
fn eq(&self, other: &Host) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Host) -> bool
[src]
fn ne(&self, other: &Host) -> bool
This method tests for !=
.
impl Eq for Host
[src]
impl Eq for Host
impl Hash for Host
[src]
impl Hash for Host