Struct aerospike::Host [−][src]
Host name/port of database server.
Fields
name: String
Host name or IP address of database server.
port: u16
Port of database server.
Methods
impl Host
[src]
impl Host
pub fn new(name: &str, port: u16) -> Self
[src]
pub fn new(name: &str, port: u16) -> Self
Create a new host instance given a hostname/IP and a port number.
pub fn address(&self) -> String
[src]
pub fn address(&self) -> String
Returns a string representation of the host's address.
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 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
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. 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 ToSocketAddrs for Host
[src]
impl ToSocketAddrs for Host
type Iter = IntoIter<SocketAddr>
Returned iterator over socket addresses which this type may correspond to. Read more
fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
[src]
fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
Converts this object to an iterator of resolved SocketAddr
s. Read more
impl Display for Host
[src]
impl Display for Host