pub struct CName {
pub name: String,
}Expand description
Canonical name for an alias
Fields§
§name: StringCanonical host name
Trait Implementations§
Source§impl Record for CName
impl Record for CName
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 CName
impl StructuralPartialEq for CName
Auto Trait Implementations§
impl Freeze for CName
impl RefUnwindSafe for CName
impl Send for CName
impl Sync for CName
impl Unpin for CName
impl UnwindSafe for CName
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