pub struct Host {
pub name: String,
pub port: u16,
}
Expand description
Host name/port of database server.
Fields§
§name: String
Host name or IP address of database server.
port: u16
Port of database server.
Implementations§
Trait Implementations§
source§impl PartialEq<Host> for Host
impl PartialEq<Host> for Host
source§impl ToSocketAddrs for Host
impl ToSocketAddrs for Host
§type Iter = IntoIter<SocketAddr, Global>
type Iter = IntoIter<SocketAddr, Global>
Returned iterator over socket addresses which this type may correspond
to.
source§fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
fn to_socket_addrs(&self) -> Result<IntoIter<SocketAddr>>
Converts this object to an iterator of resolved
SocketAddr
s. Read moreimpl 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