pub struct Question<N: ToDname> { /* private fields */ }Expand description
A question in a DNS message.
In DNS, a question describes what is requested in a query. It consists of three elements: a domain name, a record type, and a class. This type such a question.
Questions are generic over the domain name type. When read from an
actual message, a ParsedDname has to be used because the name part
may be compressed.
In order to allow questions on the fly, in particular when creating
messages via MessageBuilder, the From trait is implemented for
tuples of all three elements of a question as well as for only name
and record type assuming Class::In which is likely what you want,
anyway.
Implementations§
Trait Implementations§
Source§impl<N: Ord + ToDname> Ord for Question<N>
impl<N: Ord + ToDname> Ord for Question<N>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<N: ToDname + Parse> Parse for Question<N>
impl<N: ToDname + Parse> Parse for Question<N>
Source§impl<N: PartialOrd + ToDname> PartialOrd for Question<N>
impl<N: PartialOrd + ToDname> PartialOrd for Question<N>
impl<N: Eq + ToDname> Eq for Question<N>
impl<N: ToDname> StructuralPartialEq for Question<N>
Auto Trait Implementations§
impl<N> Freeze for Question<N>where
N: Freeze,
impl<N> RefUnwindSafe for Question<N>where
N: RefUnwindSafe,
impl<N> Send for Question<N>where
N: Send,
impl<N> Sync for Question<N>where
N: Sync,
impl<N> Unpin for Question<N>where
N: Unpin,
impl<N> UnwindSafe for Question<N>where
N: UnwindSafe,
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