Struct simple_dns::rdata::SRV[][src]

pub struct SRV<'a> {
    pub priority: u16,
    pub weight: u16,
    pub port: u16,
    pub target: Name<'a>,
}
Expand description

SRV records specifies the location of the server(s) for a specific protocol and domain.

Fields

priority: u16

The priority of this target host.
A client MUST attempt to contact the target host with the lowest-numbered priority it can reach; target hosts with the same priority SHOULD be tried in an order defined by the weight field.

weight: u16

A server selection mechanism.
The weight field specifies arelative weight for entries with the same priority.
Larger weights SHOULD be given a proportionately higher probability of being selected.

port: u16

The port on this target host of this service

target: Name<'a>

The domain name of the target host

Trait Implementations

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.