Struct dns_stamp_parser::DnsOverTls[][src]

pub struct DnsOverTls {
    pub props: Props,
    pub addr: Option<Addr>,
    pub hashi: Vec<[u8; 32]>,
    pub hostname: String,
    pub bootstrap_ipi: Vec<IpAddr>,
}

DNS over TLS configuration

Fields

props: Props

server properties

addr: Option<Addr>

addr is the IP address of the server. It can be an empty string, or just a port number, represented with a preceding colon (:443). In that case, the host name will be resolved to an IP address using another resolver.

hashi: Vec<[u8; 32]>

hashi is the SHA256 digest of one of the TBS certificate found in the validation chain, typically the certificate used to sign the resolver’s certificate. Multiple hashes can be provided for seamless rotations.

hostname: String

hostname is the server host name which will also be used as a SNI name. If the host name contains characters outside the URL-permitted range, these characters should be sent as-is, without any extra encoding (neither URL-encoded nor punycode).

bootstrap_ipi: Vec<IpAddr>

bootstrap_ipi are IP addresses of recommended resolvers accessible over standard DNS in order to resolve hostname. This is optional, and clients can ignore this information.

Implementations

impl DnsOverTls[src]

pub fn hostname(&self) -> String[src]

get hostname from config

Trait Implementations

impl Clone for DnsOverTls[src]

impl Debug for DnsOverTls[src]

impl Eq for DnsOverTls[src]

impl PartialEq<DnsOverTls> for DnsOverTls[src]

impl StructuralEq for DnsOverTls[src]

impl StructuralPartialEq for DnsOverTls[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.