pub struct InstanceInformation {
    pub ip_addresses: Vec<IpAddr>,
    pub ports: Vec<u16>,
    pub attributes: HashMap<String, Option<String>>,
}
Expand description

Represents a single instance of the service. Notice that it is not possible to associate a port to a single ip address, due to limitations of the DNS protocol

Fields

ip_addresses: Vec<IpAddr>

Ips for this instance

ports: Vec<u16>

Ports for this instance

attributes: HashMap<String, Option<String>>

Attributes for this instance

Implementations

Creates an empty InstanceInformation

Transform into a Vec

Creates a Iterator of SocketAddr for each ip address and port combination

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. 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

Performs the conversion.

Performs the conversion.

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.