pub struct Record { /* private fields */ }Implementations§
Source§impl Record
impl Record
pub fn new( name: Name, rtype: RecordType, rclass: RecordClass, ttl: u32, rdata: RecordData, ) -> Self
pub fn size(&self) -> usize
pub fn name(&self) -> &Name
pub fn rtype(&self) -> RecordType
pub fn rclass(&self) -> RecordClass
pub fn ttl(&self) -> u32
pub fn rdata(&self) -> &RecordData
pub fn write_network_bytes<T>(&self, buf: T) -> Result<(), MtopError>where
T: WriteBytesExt,
pub fn read_network_bytes<T>(buf: T) -> Result<Self, MtopError>where
T: ReadBytesExt + Seek,
Trait Implementations§
impl Eq for Record
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
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