pub enum InetHost {
Ip(IpAddr),
Dns(String),
}Available on crate feature
dns only.Expand description
An Internet host name which can be resolved by standard OS means (and thus
accepted by std::net methods via use of std::net::ToSocketAddrs trait,
when combined with a port address).
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for InetHost
impl<'de> Deserialize<'de> for InetHost
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<P: ToSocketAddrs + Addr> From<InetHost> for ProxiedHost<P>
impl<P: ToSocketAddrs + Addr> From<InetHost> for ProxiedHost<P>
Source§impl Ord for InetHost
impl Ord for InetHost
Source§impl PartialOrd for InetHost
impl PartialOrd for InetHost
impl Eq for InetHost
impl StructuralPartialEq for InetHost
Auto Trait Implementations§
impl Freeze for InetHost
impl RefUnwindSafe for InetHost
impl Send for InetHost
impl Sync for InetHost
impl Unpin for InetHost
impl UnwindSafe for InetHost
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