Enum tokio_postgres::params::ConnectTarget []

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

Specifies the target server to connect to.

Variants

Connect via TCP to the specified host.

Connect via a Unix domain socket in the specified directory.

Unix sockets are only supported on Unixy platforms (i.e. not Windows).

Trait Implementations

impl Debug for ConnectTarget

Formats the value using the given formatter.

impl Clone for ConnectTarget