#[non_exhaustive]pub enum HostAddressKind {
Ipv4,
Ipv6 {
bracketed: bool,
},
HostGateway,
Other,
}Expand description
Conservative kind of one service host-mapping address.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Ipv4
An IPv4 address.
Ipv6
An IPv6 address, retaining whether its source spelling used brackets.
HostGateway
The runtime-specific host-gateway token.
Other
A deferred 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 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