[][src]Struct aerospike::Host

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

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]

pub fn new(name: &str, port: u16) -> Self[src]

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

pub fn address(&self) -> String[src]

Returns a string representation of the host's address.

Trait Implementations

impl Clone for Host[src]

impl Eq for Host[src]

impl PartialEq<Host> for Host[src]

impl Debug for Host[src]

impl Display for Host[src]

impl Hash for Host[src]

impl StructuralPartialEq for Host[src]

impl StructuralEq for Host[src]

impl ToSocketAddrs for Host[src]

type Iter = IntoIter<SocketAddr>

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

Auto Trait Implementations

impl Send for Host

impl Sync for Host

impl Unpin 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> ToString for T where
    T: Display + ?Sized
[src]

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

type Error = !

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> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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