Struct dnscache::AddrTtl
[−]
[src]
pub struct AddrTtl { pub ttl: Ttl, pub ip: Vec<u8>, }
Simplified record: some address with TTL
Fields
ttl: Ttl
Time to Live, seconds
ip: Vec<u8>
IPv4 or IPv6 address. Must be appropriate length (4 / 16 bytes respectively)
Trait Implementations
impl Debug for AddrTtl
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for AddrTtl
[src]
impl PartialEq for AddrTtl
[src]
fn eq(&self, __arg_0: &AddrTtl) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AddrTtl) -> bool
[src]
This method tests for !=
.
impl Hash for AddrTtl
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more