Enum postgres_shared::params::Host[][src]

pub enum Host {
    Tcp(String),
    Unix(PathBuf),
}

The host.

Variants

A TCP hostname.

The path to a directory containing the server's Unix socket.

Trait Implementations

impl Clone for Host
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Auto Trait Implementations

impl Send for Host

impl Sync for Host