pub enum LookupRecords {
Empty,
Records {
lookup_options: LookupOptions,
records: Arc<RecordSet>,
},
ManyRecords(LookupOptions, Vec<Arc<RecordSet>>),
Section(Vec<Record>),
}Expand description
The result of a lookup
Variants§
Empty
The empty set of records
Records
The associate records
Fields
§
lookup_options: LookupOptionsLookupOptions for the request, e.g. dnssec
ManyRecords(LookupOptions, Vec<Arc<RecordSet>>)
Vec of disjoint record sets
Section(Vec<Record>)
A section from a response message
Implementations§
Source§impl LookupRecords
impl LookupRecords
Sourcepub fn new(lookup_options: LookupOptions, records: Arc<RecordSet>) -> Self
pub fn new(lookup_options: LookupOptions, records: Arc<RecordSet>) -> Self
Construct a new LookupRecords
Sourcepub fn many(lookup_options: LookupOptions, records: Vec<Arc<RecordSet>>) -> Self
pub fn many(lookup_options: LookupOptions, records: Vec<Arc<RecordSet>>) -> Self
Construct a new LookupRecords over a set of RecordSets
Sourcepub fn was_empty(&self) -> bool
pub fn was_empty(&self) -> bool
This is an NxDomain or NameExists, and has no associated records
this consumes the iterator, and verifies it is empty
Sourcepub fn iter(&self) -> LookupRecordsIter<'_> ⓘ
pub fn iter(&self) -> LookupRecordsIter<'_> ⓘ
Conversion to an iterator
Trait Implementations§
Source§impl Debug for LookupRecords
impl Debug for LookupRecords
Source§impl Default for LookupRecords
impl Default for LookupRecords
Source§fn default() -> LookupRecords
fn default() -> LookupRecords
Returns the “default value” for a type. Read more
Source§impl From<LookupRecords> for AuthLookup
impl From<LookupRecords> for AuthLookup
Source§fn from(lookup: LookupRecords) -> Self
fn from(lookup: LookupRecords) -> Self
Converts to this type from the input type.
Source§impl<'a> IntoIterator for &'a LookupRecords
impl<'a> IntoIterator for &'a LookupRecords
Auto Trait Implementations§
impl Freeze for LookupRecords
impl RefUnwindSafe for LookupRecords
impl Send for LookupRecords
impl Sync for LookupRecords
impl Unpin for LookupRecords
impl UnsafeUnpin for LookupRecords
impl UnwindSafe for LookupRecords
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more