pub struct Question<'a> { /* private fields */ }Implementations§
Source§impl<'a> Question<'a>
impl<'a> Question<'a>
Sourcepub fn new(name: &'a DomainName) -> Question<'a>
pub fn new(name: &'a DomainName) -> Question<'a>
Creates a question asking for all records (QType::ALL) in the internet class
(QClass::IN) pertaining to name.
Sourcepub fn class(self, class: QClass) -> Question<'a>
pub fn class(self, class: QClass) -> Question<'a>
Sets the record class to query.
In almost all cases this can be left as the default value (QClass::IN), which queries
records in the Internet class.
Auto Trait Implementations§
impl<'a> Freeze for Question<'a>
impl<'a> RefUnwindSafe for Question<'a>
impl<'a> Send for Question<'a>
impl<'a> Sync for Question<'a>
impl<'a> Unpin for Question<'a>
impl<'a> UnwindSafe for Question<'a>
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