pub struct Key {
pub host: SmolStr,
pub port: u16,
pub version: Version,
pub server_name: Option<ServerName>,
}
Fields§
§host: SmolStr
§port: u16
§version: Version
§server_name: Option<ServerName>
Trait Implementations§
Source§impl Param<UnifiedTransportAddr> for Key
impl Param<UnifiedTransportAddr> for Key
fn param(&self) -> UnifiedTransportAddr
Source§impl ParamMut<Option<ServerName>> for Key
impl ParamMut<Option<ServerName>> for Key
fn param_mut(&mut self) -> &mut Option<ServerName>
Source§impl ToSocketAddrs for Key
impl ToSocketAddrs for Key
Source§type Iter = <(&'static str, u16) as ToSocketAddrs>::Iter
type Iter = <(&'static str, u16) as ToSocketAddrs>::Iter
Returned iterator over socket addresses which this type may correspond
to.
Source§fn to_socket_addrs(&self) -> Result<Self::Iter>
fn to_socket_addrs(&self) -> Result<Self::Iter>
Converts this object to an iterator of resolved
SocketAddr
s. Read moreimpl Eq for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.