Enum tokio_postgres::config::Host
source · pub enum Host {
Tcp(String),
Unix(PathBuf),
}
Expand description
A host specification.
Variants§
Tcp(String)
A TCP hostname.
Unix(PathBuf)
A path to a directory containing the server’s Unix socket.
This variant is only available on Unix platforms.
Trait Implementations§
source§impl PartialEq<Host> for Host
impl PartialEq<Host> for Host
impl Eq for Host
impl StructuralEq for Host
impl StructuralPartialEq for Host
Auto Trait Implementations§
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnwindSafe for Host
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more