pub enum QueryClass {
Record(RecordClass),
Wildcard,
}
Expand description
Query classes are a superset of record classes.
Variants§
Record(RecordClass)
Wildcard
Implementations§
Source§impl QueryClass
impl QueryClass
Sourcefn deserialise(
id: u16,
buffer: &mut ConsumableBuffer<'_>,
) -> Result<Self, Error>
fn deserialise( id: u16, buffer: &mut ConsumableBuffer<'_>, ) -> Result<Self, Error>
§Errors
If the query class is too short.
Source§impl QueryClass
impl QueryClass
fn serialise(self, buffer: &mut WritableBuffer)
Source§impl QueryClass
impl QueryClass
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for QueryClass
impl Clone for QueryClass
Source§fn clone(&self) -> QueryClass
fn clone(&self) -> QueryClass
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for QueryClass
impl Debug for QueryClass
Source§impl Display for QueryClass
impl Display for QueryClass
Source§impl From<QueryClass> for u16
impl From<QueryClass> for u16
Source§fn from(value: QueryClass) -> Self
fn from(value: QueryClass) -> Self
Converts to this type from the input type.
Source§impl From<u16> for QueryClass
impl From<u16> for QueryClass
Source§impl FromStr for QueryClass
impl FromStr for QueryClass
Source§impl Hash for QueryClass
impl Hash for QueryClass
Source§impl Ord for QueryClass
impl Ord for QueryClass
Source§fn cmp(&self, other: &QueryClass) -> Ordering
fn cmp(&self, other: &QueryClass) -> Ordering
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 PartialEq for QueryClass
impl PartialEq for QueryClass
Source§impl PartialOrd for QueryClass
impl PartialOrd for QueryClass
impl Copy for QueryClass
impl Eq for QueryClass
impl StructuralPartialEq for QueryClass
Auto Trait Implementations§
impl Freeze for QueryClass
impl RefUnwindSafe for QueryClass
impl Send for QueryClass
impl Sync for QueryClass
impl Unpin for QueryClass
impl UnwindSafe for QueryClass
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