pub struct MXResult<'a> { /* private fields */ }
Expand description
The contents of a single MX record.
Implementations
sourceimpl<'a> MXResult<'a>
impl<'a> MXResult<'a>
sourcepub fn host(self) -> &'a CStr
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.
Trait Implementations
impl<'a> Copy for MXResult<'a>
impl<'a> Send for MXResult<'a>
impl<'a> Sync for MXResult<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for MXResult<'a>
impl<'a> Unpin for MXResult<'a>
impl<'a> UnwindSafe for MXResult<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more