pub enum HostRef<'a, HostItem: TextOrPet<HOST_UE>, HostIter: Clone + IntoIterator<Item = HostItem>> {
    IPv4(&'a Ipv4Addr),
    IPv6 {
        address: &'a Ipv6Addr,
        zone: Option<&'a str>,
    },
    Hostname(HostIter),
}
Expand description

The limited list of shapes a Host can have.

This is the main method for reading out a Host, although it may later change into three fn as_variant(&self) -> &variant_type methods (but these can’t be matched as easily).

Variants

IPv4(&'a Ipv4Addr)

IPv6

Fields

address: &'a Ipv6Addr
zone: Option<&'a str>

Hostname(HostIter)

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.