pub enum AppUsage {
    Normal,
    Loopback,
    LinkLocal,
    NxDomain,
}
Expand description

Application Software:

Are writers of application software expected to make their software recognize these names as special and treat them differently? In what way? (For example, if a human user enters such a name, should the application software reject it with an error message?)

Variants

Normal

Application software SHOULD NOT recognize these names as special, and SHOULD use these names as they would other reverse-mapping names.

Application software SHOULD NOT recognize test names as special, and SHOULD use test names as they would other domain names.

Application software SHOULD NOT recognize example names as special and SHOULD use example names as they would other domain names.

Loopback

Application software MAY recognize localhost names as special, or MAY pass them to name resolution APIs as they would for other domain names.

LinkLocal

Link local, generally for mDNS

NxDomain

Application software MAY recognize “invalid” names as special or MAY pass them to name resolution APIs as they would for other domain names.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. 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

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.