pub enum HostAddressKind {
Ipv4,
Ipv6 {
bracketed: bool,
},
HostGateway,
Other,
}Expand description
The lexical kind of a host address.
Variants§
Ipv4
An IPv4 address.
Ipv6
An IPv6 address, retaining whether brackets were authored.
HostGateway
The runtime-specific host-gateway token.
Other
A deferred expression or implementation-specific value.
Trait Implementations§
Source§impl Clone for HostAddressKind
impl Clone for HostAddressKind
Source§fn clone(&self) -> HostAddressKind
fn clone(&self) -> HostAddressKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HostAddressKind
Source§impl Debug for HostAddressKind
impl Debug for HostAddressKind
impl Eq for HostAddressKind
Source§impl Hash for HostAddressKind
impl Hash for HostAddressKind
Source§impl PartialEq for HostAddressKind
impl PartialEq for HostAddressKind
impl StructuralPartialEq for HostAddressKind
Auto Trait Implementations§
impl Freeze for HostAddressKind
impl RefUnwindSafe for HostAddressKind
impl Send for HostAddressKind
impl Sync for HostAddressKind
impl Unpin for HostAddressKind
impl UnsafeUnpin for HostAddressKind
impl UnwindSafe for HostAddressKind
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