Struct aerospike::Host[][src]

pub struct Host {
    pub name: String,
    pub port: u16,
}

Host name/port of database server.

Fields

Host name or IP address of database server.

Port of database server.

Methods

impl Host
[src]

Create a new host instance given a hostname/IP and a port number.

Returns a string representation of the host's address.

Trait Implementations

impl Debug for Host
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Host
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Host
[src]

impl Hash for Host
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Clone for Host
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl ToSocketAddrs for Host
[src]

Returned iterator over socket addresses which this type may correspond to. Read more

Converts this object to an iterator of resolved SocketAddrs. Read more

impl Display for Host
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Host

impl Sync for Host