pub enum HostIpKind {
Ipv4DottedQuad,
Ipv4Legacy,
Ipv6,
}Expand description
How a host string spelled an IP address.
Variants§
Ipv4DottedQuad
Four decimal parts without leading zeros: 1.1.1.1.
Ipv4Legacy
Any other IPv4 spelling inet_aton accepts: 127.1, 0177.0.0.1, 0x7f.0.0.1,
2130706433, 10.1.2, and the dotted quad with a trailing dot.
Ipv6
An IPv6 literal, with or without brackets, including IPv4-mapped forms.
Trait Implementations§
Source§impl Clone for HostIpKind
impl Clone for HostIpKind
impl Copy for HostIpKind
Source§impl Debug for HostIpKind
impl Debug for HostIpKind
impl Eq for HostIpKind
Source§impl Hash for HostIpKind
impl Hash for HostIpKind
Source§impl PartialEq for HostIpKind
impl PartialEq for HostIpKind
impl StructuralPartialEq for HostIpKind
Auto Trait Implementations§
impl Freeze for HostIpKind
impl RefUnwindSafe for HostIpKind
impl Send for HostIpKind
impl Sync for HostIpKind
impl Unpin for HostIpKind
impl UnsafeUnpin for HostIpKind
impl UnwindSafe for HostIpKind
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