pub struct Txt {
pub data: Vec<u8>,
}Expand description
Text record
Fields§
§data: Vec<u8>One or more character strings
Trait Implementations§
Source§impl Record for Txt
impl Record for Txt
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 Txt
impl StructuralPartialEq for Txt
Auto Trait Implementations§
impl Freeze for Txt
impl RefUnwindSafe for Txt
impl Send for Txt
impl Sync for Txt
impl Unpin for Txt
impl UnwindSafe for Txt
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