pub struct Resolver { /* private fields */ }Implementations§
source§impl Resolver
impl Resolver
sourcepub async fn verify_arc<'x>(
&self,
message: &'x AuthenticatedMessage<'x>
) -> ArcOutput<'x>
pub async fn verify_arc<'x>(
&self,
message: &'x AuthenticatedMessage<'x>
) -> ArcOutput<'x>
Verifies ARC headers of an RFC5322 message.
source§impl Resolver
impl Resolver
pub fn new_cloudflare_tls() -> Result<Self, ResolveError>
pub fn new_cloudflare() -> Result<Self, ResolveError>
pub fn new_google() -> Result<Self, ResolveError>
pub fn new_quad9() -> Result<Self, ResolveError>
pub fn new_quad9_tls() -> Result<Self, ResolveError>
pub fn new_system_conf() -> Result<Self, ResolveError>
pub fn with_capacity(
config: ResolverConfig,
options: ResolverOpts,
capacity: usize
) -> Result<Self, ResolveError>
pub fn with_capacities(
config: ResolverConfig,
options: ResolverOpts,
txt_capacity: usize,
mx_capacity: usize,
ipv4_capacity: usize,
ipv6_capacity: usize,
ptr_capacity: usize
) -> Result<Self, ResolveError>
pub async fn txt_lookup<'x, T: TxtRecordParser + Into<Txt> + UnwrapTxtRecord>(
&self,
key: impl IntoFqdn<'x>
) -> Result<Arc<T>>
pub async fn mx_lookup<'x>(&self, key: impl IntoFqdn<'x>) -> Result<Arc<Vec<MX>>>
pub async fn ipv4_lookup<'x>(
&self,
key: impl IntoFqdn<'x>
) -> Result<Arc<Vec<Ipv4Addr>>>
pub async fn ipv6_lookup<'x>(
&self,
key: impl IntoFqdn<'x>
) -> Result<Arc<Vec<Ipv6Addr>>>
pub async fn ip_lookup(
&self,
key: &str,
strategy: IpLookupStrategy,
max_results: usize
) -> Result<Vec<IpAddr>>
pub async fn ptr_lookup<'x>(&self, addr: IpAddr) -> Result<Arc<Vec<String>>>
pub async fn exists<'x>(&self, key: impl IntoFqdn<'x>) -> Result<bool>
source§impl Resolver
impl Resolver
pub async fn verify_iprev(&self, addr: IpAddr) -> IprevOutput
source§impl Resolver
impl Resolver
sourcepub async fn verify_dkim<'x>(
&self,
message: &'x AuthenticatedMessage<'x>
) -> Vec<DkimOutput<'x>> ⓘ
pub async fn verify_dkim<'x>(
&self,
message: &'x AuthenticatedMessage<'x>
) -> Vec<DkimOutput<'x>> ⓘ
Verifies DKIM headers of an RFC5322 message.
source§impl Resolver
impl Resolver
sourcepub async fn verify_dmarc(
&self,
message: &AuthenticatedMessage<'_>,
dkim_output: &[DkimOutput<'_>],
mail_from_domain: &str,
spf_output: &SpfOutput
) -> DmarcOutput
pub async fn verify_dmarc(
&self,
message: &AuthenticatedMessage<'_>,
dkim_output: &[DkimOutput<'_>],
mail_from_domain: &str,
spf_output: &SpfOutput
) -> DmarcOutput
Verifies the DMARC policy of an RFC5322.From domain
source§impl Resolver
impl Resolver
sourcepub async fn verify_spf_helo(
&self,
ip: IpAddr,
helo_domain: &str,
host_domain: &str
) -> SpfOutput
pub async fn verify_spf_helo(
&self,
ip: IpAddr,
helo_domain: &str,
host_domain: &str
) -> SpfOutput
Verifies the SPF EHLO identity
sourcepub async fn verify_spf_sender(
&self,
ip: IpAddr,
helo_domain: &str,
host_domain: &str,
sender: &str
) -> SpfOutput
pub async fn verify_spf_sender(
&self,
ip: IpAddr,
helo_domain: &str,
host_domain: &str,
sender: &str
) -> SpfOutput
Verifies the SPF MAIL FROM identity
sourcepub async fn verify_spf(
&self,
ip: IpAddr,
helo_domain: &str,
host_domain: &str,
mail_from: &str
) -> SpfOutput
pub async fn verify_spf(
&self,
ip: IpAddr,
helo_domain: &str,
host_domain: &str,
mail_from: &str
) -> SpfOutput
Verifies both the SPF EHLO and MAIL FROM identities