Struct mtop_client::dns::Message
source · pub struct Message { /* private fields */ }Implementations§
source§impl Message
impl Message
pub fn new(id: MessageId, flags: Flags) -> Self
pub fn id(&self) -> MessageId
pub fn flags(&self) -> Flags
pub fn questions(&self) -> &[Question]
pub fn add_question(self, q: Question) -> Self
pub fn answers(&self) -> &[Record]
pub fn add_answer(self, r: Record) -> Self
pub fn extra(&self) -> &[Record]
pub fn add_extra(self, r: Record) -> Self
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§
source§impl PartialEq for Message
impl PartialEq for Message
impl Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)