Enum tokio_postgres::params::ConnectTarget
[−]
pub enum ConnectTarget { Tcp(String), Unix(PathBuf), }
Specifies the target server to connect to.
Variants
Tcp(String)
Connect via TCP to the specified host.
Unix(PathBuf)
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
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.