pub struct Ns {
pub name: String,
}Expand description
Authoritative name server
Fields§
§name: StringHost which should be authoritative for the specified class and domain
Trait Implementations§
Source§impl Record for Ns
impl Record for Ns
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 Ns
impl StructuralPartialEq for Ns
Auto Trait Implementations§
impl Freeze for Ns
impl RefUnwindSafe for Ns
impl Send for Ns
impl Sync for Ns
impl Unpin for Ns
impl UnwindSafe for Ns
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