Struct libdata::flow::Name []

pub struct Name(pub String);

A DNS name.

It is kept in lower-case, for two reasons. One, some resolvels do case randomization (eXAmplE.ORg), which is probably some kind of security thing and fine by the RFCs, but ugly to look at. Another, DNS names are case insensitive and this helps that.

Note

DNS names can contain non-valid utf8. But there's no way these get into this application, so we simply use a string, not something like OsString. Also, there are things like dots in the middle of label, which is also legal, etc. We simply don't care about these right now (but having the type allows us to care in the future).

Methods

impl Name
[src]

Create a new DNS name.

Trait Implementations

impl EndpointType for Name
[src]

The name of the bare tag. Read more

impl Clone for Name
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Name
[src]

Formats the value using the given formatter.

impl Eq for Name
[src]

impl Hash for Name
[src]

Feeds this value into the given [Hasher]. Read more

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

impl PartialEq for Name
[src]

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

This method tests for !=.

impl Ord for Name
[src]

This method returns an Ordering between self and other. Read more

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

Compares and returns the maximum of two values. Read more

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

Compares and returns the minimum of two values. Read more

impl PartialOrd for Name
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'de> Deserialize<'de> for Name
[src]

Deserialize this value from the given Serde deserializer. Read more