Skip to main content

ArcResolver

Trait ArcResolver 

Source
pub trait ArcResolver: Send + Sync {
    // Required method
    fn lookup_txt<'life0, 'life1, 'async_trait>(
        &'life0 self,
        domain: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, DkimError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             'life1: 'async_trait,
             Self: 'async_trait;
}
Expand description

Minimal DNS interface — DKIM only needs TXT lookups.

Implementors map NXDOMAIN to Ok(vec![]) (the caller maps that to [DkimResult::PermError] per RFC 6376 §6.1.2). Reserve Err(DkimError::DnsTempError) for actual lookup failures.

Required Methods§

Source

fn lookup_txt<'life0, 'life1, 'async_trait>( &'life0 self, domain: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<String>, DkimError>> + Send + 'async_trait>>
where 'life0: 'async_trait, 'life1: 'async_trait, Self: 'async_trait,

TXT records for domain. For DKIM, the caller passes <selector>._domainkey.<signing-domain>.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§