Enum postgres_shared::params::ConnectTarget
[−]
[src]
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 Clone for ConnectTarget[src]
fn clone(&self) -> ConnectTarget
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more