Struct dns_resolver::MailExchanger
source · pub struct MailExchanger {
pub domain_name: String,
pub hosts: Vec<String>,
pub site_name: String,
pub by_pref: BTreeMap<u16, Vec<String>>,
pub is_domain_literal: bool,
pub is_secure: bool,
pub is_mx: bool,
/* private fields */
}
Fields§
§domain_name: String
§hosts: Vec<String>
§site_name: String
§by_pref: BTreeMap<u16, Vec<String>>
§is_domain_literal: bool
§is_secure: bool
DNSSEC verified
is_mx: bool
Implementations§
source§impl MailExchanger
impl MailExchanger
pub async fn resolve(domain_name: &str) -> Result<Arc<Self>>
pub fn has_expired(&self) -> bool
sourcepub async fn resolve_addresses(&self) -> ResolvedMxAddresses
pub async fn resolve_addresses(&self) -> ResolvedMxAddresses
Returns the list of resolve MX hosts in reverse preference order; the first one to try is the last element. smtp_dispatcher.rs relies on this ordering, as it will pop off candidates until it has exhausted its connection plan.
Trait Implementations§
source§impl Clone for MailExchanger
impl Clone for MailExchanger
source§fn clone(&self) -> MailExchanger
fn clone(&self) -> MailExchanger
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MailExchanger
impl Debug for MailExchanger
Auto Trait Implementations§
impl Freeze for MailExchanger
impl RefUnwindSafe for MailExchanger
impl Send for MailExchanger
impl Sync for MailExchanger
impl Unpin for MailExchanger
impl UnwindSafe for MailExchanger
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)