Struct simple_dns::rdata::MX
source · pub struct MX<'a> {
pub preference: u16,
pub exchange: Name<'a>,
}
Expand description
MX is used to acquire mail exchange information
Fields§
§preference: u16
A 16 bit integer which specifies the preference given to this RR among others at the same owner.
Lower values are preferred.
exchange: Name<'a>
A Name which specifies a host willing to act as a mail exchange for the owner name.
Implementations§
Trait Implementations§
source§impl<'a> PartialEq for MX<'a>
impl<'a> PartialEq for MX<'a>
impl<'a> Eq for MX<'a>
impl<'a> StructuralPartialEq for MX<'a>
Auto Trait Implementations§
impl<'a> Freeze for MX<'a>
impl<'a> RefUnwindSafe for MX<'a>
impl<'a> Send for MX<'a>
impl<'a> Sync for MX<'a>
impl<'a> Unpin for MX<'a>
impl<'a> UnwindSafe for MX<'a>
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)