Struct dnscache::AddrTtl [] [src]

pub struct AddrTtl {
    pub ttl: Ttl,
    pub ip: Vec<u8>,
}

Simplified record: some address with TTL

Fields

Time to Live, seconds

IPv4 or IPv6 address. Must be appropriate length (4 / 16 bytes respectively)

Trait Implementations

impl Debug for AddrTtl
[src]

[src]

Formats the value using the given formatter.

impl Eq for AddrTtl
[src]

impl PartialEq for AddrTtl
[src]

[src]

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

[src]

This method tests for !=.

impl Hash for AddrTtl
[src]

[src]

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

1.3.0
[src]

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

impl Default for AddrTtl
[src]

[src]

Returns the "default value" for a type. Read more