pub struct Message { /* private fields */ }
Implementations§
Source§impl Message
impl Message
pub fn new(id: MessageId, flags: Flags) -> Self
pub fn size(&self) -> usize
pub fn id(&self) -> MessageId
pub fn flags(&self) -> Flags
pub fn set_flags(self, flags: Flags) -> Self
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§
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