Struct c_ares::MXResult [−][src]
pub struct MXResult<'a> { /* fields omitted */ }
The contents of a single MX record.
Methods
impl<'a> MXResult<'a>
[src]
impl<'a> MXResult<'a>
pub fn host(self) -> &'a CStr
[src]
pub fn host(self) -> &'a CStr
Returns the hostname in this MXResult
.
In practice this is very likely to be a valid UTF-8 string, but the underlying c-ares
library does not guarantee this - so we leave it to users to decide whether they prefer a
fallible conversion, a lossy conversion, or something else altogether.
pub fn priority(self) -> u16
[src]
pub fn priority(self) -> u16
Returns the priority from this MXResult
.
Trait Implementations
impl<'a> Clone for MXResult<'a>
[src]
impl<'a> Clone for MXResult<'a>
fn clone(&self) -> MXResult<'a>
[src]
fn clone(&self) -> MXResult<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Copy for MXResult<'a>
[src]
impl<'a> Copy for MXResult<'a>
impl<'a> Send for MXResult<'a>
[src]
impl<'a> Send for MXResult<'a>
impl<'a> Sync for MXResult<'a>
[src]
impl<'a> Sync for MXResult<'a>
impl<'a> Display for MXResult<'a>
[src]
impl<'a> Display for MXResult<'a>