pub struct Mx {
pub preference: u16,
pub exchange: String,
}Expand description
Mail exchange data
Fields§
§preference: u16Represents the preference of this record among others. Lower values are preferred.
exchange: StringDomain name willing to act as mail exchange for the host.
Trait Implementations§
Source§impl Record for Mx
impl Record for Mx
Source§fn decode(data: &mut MsgReader<'_>) -> Result<Self, DecodeError>
fn decode(data: &mut MsgReader<'_>) -> Result<Self, DecodeError>
Decodes the
Record from resource rdata.Source§fn encode(&self, data: &mut MsgWriter<'_>) -> Result<(), EncodeError>
fn encode(&self, data: &mut MsgWriter<'_>) -> Result<(), EncodeError>
Encodes the
Record to resource rdata.Source§fn record_type() -> RecordType
fn record_type() -> RecordType
Returns the
RecordType of queries for this record.impl Eq for Mx
impl StructuralPartialEq for Mx
Auto Trait Implementations§
impl Freeze for Mx
impl RefUnwindSafe for Mx
impl Send for Mx
impl Sync for Mx
impl Unpin for Mx
impl UnwindSafe for Mx
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