pub struct Question { /* private fields */ }
Implementations§
Source§impl Question
impl Question
pub fn new(name: Name, qtype: RecordType) -> Self
pub fn size(&self) -> usize
pub fn set_qclass(self, qclass: RecordClass) -> Self
pub fn name(&self) -> &Name
pub fn qtype(&self) -> RecordType
pub fn qclass(&self) -> RecordClass
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 Question
impl StructuralPartialEq for Question
Auto Trait Implementations§
impl Freeze for Question
impl RefUnwindSafe for Question
impl Send for Question
impl Sync for Question
impl Unpin for Question
impl UnwindSafe for Question
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