pub struct DnsClient { /* private fields */ }
Expand description
Simple DNS client using the tokio async resolver.
Implementations§
Source§impl DnsClient
impl DnsClient
Sourcepub async fn get_mailconf_txt_uri(&self, domain: &str) -> Result<Uri>
pub async fn get_mailconf_txt_uri(&self, domain: &str) -> Result<Uri>
Get the first mailconf URI of TXT records from the given domain.
Sourcepub async fn get_mx_domain(&self, domain: &str) -> Result<String>
pub async fn get_mx_domain(&self, domain: &str) -> Result<String>
Get the first MX exchange domain from a given domain.
Sourcepub async fn get_srv(&self, domain: &str, subdomain: &str) -> Result<SRV>
pub async fn get_srv(&self, domain: &str, subdomain: &str) -> Result<SRV>
Get the first SRV record from a given domain and subdomain.
Sourcepub async fn get_imap_srv(&self, domain: &str) -> Result<SRV>
pub async fn get_imap_srv(&self, domain: &str) -> Result<SRV>
Get the first IMAP SRV record from a given domain.
Sourcepub async fn get_imaps_srv(&self, domain: &str) -> Result<SRV>
pub async fn get_imaps_srv(&self, domain: &str) -> Result<SRV>
Get the first IMAPS SRV record from a given domain.
Sourcepub async fn get_submission_srv(&self, domain: &str) -> Result<SRV>
pub async fn get_submission_srv(&self, domain: &str) -> Result<SRV>
Get the first SMTP(S) SRV record from a given domain.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DnsClient
impl !RefUnwindSafe for DnsClient
impl Send for DnsClient
impl Sync for DnsClient
impl Unpin for DnsClient
impl !UnwindSafe for DnsClient
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more