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 for Host
impl PartialEq for Host
impl Eq for Host
impl StructuralPartialEq for Host
Auto Trait Implementations§
impl Freeze for Host
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)