Struct monoio_http_client::Key
source · 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<Option<ServerName>> for Key
impl Param<Option<ServerName>> for Key
fn param(&self) -> Option<ServerName>
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 ParamRef<Option<ServerName>> for Key
impl ParamRef<Option<ServerName>> for Key
fn param_ref(&self) -> &Option<ServerName>
source§impl PartialEq for Key
impl PartialEq for Key
source§impl ToSocketAddrs for Key
impl ToSocketAddrs for Key
§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 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
§impl<T> CloneAny for T
impl<T> CloneAny for T
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.