Enum trust_dns_server::authority::LookupRecords [−][src]
The result of a lookup
Variants
The empty set of records
The associate records
Fields of Records
is_secure: bool
was the search a secure search
supported_algorithms: SupportedAlgorithms
what are the requests supported algorithms
records: Arc<RecordSet>
the records found based on the query
ManyRecords(bool, SupportedAlgorithms, Vec<Arc<RecordSet>>)
Vec of disjoint record sets
AnyRecords(AnyRecords)
A generic lookup response where anything is desired
Implementations
impl LookupRecords
[src]
pub fn new(
is_secure: bool,
supported_algorithms: SupportedAlgorithms,
records: Arc<RecordSet>
) -> Self
[src]
is_secure: bool,
supported_algorithms: SupportedAlgorithms,
records: Arc<RecordSet>
) -> Self
Construct a new LookupRecords
pub fn many(
is_secure: bool,
supported_algorithms: SupportedAlgorithms,
records: Vec<Arc<RecordSet>>
) -> Self
[src]
is_secure: bool,
supported_algorithms: SupportedAlgorithms,
records: Vec<Arc<RecordSet>>
) -> Self
Construct a new LookupRecords over a set of ResordSets
pub fn was_empty(&self) -> bool
[src]
This is an NxDomain or NameExists, and has no associated records
this consumes the iterator, and verifies it is empty
pub fn iter(&self) -> LookupRecordsIter<'_>ⓘNotable traits for LookupRecordsIter<'r>
impl<'r> Iterator for LookupRecordsIter<'r> type Item = &'r Record;
[src]
Notable traits for LookupRecordsIter<'r>
impl<'r> Iterator for LookupRecordsIter<'r> type Item = &'r Record;
Conversion to an iterator
Trait Implementations
impl Debug for LookupRecords
[src]
impl Default for LookupRecords
[src]
impl From<AnyRecords> for LookupRecords
[src]
fn from(rrset_records: AnyRecords) -> Self
[src]
impl From<LookupRecords> for AuthLookup
[src]
fn from(lookup: LookupRecords) -> Self
[src]
impl<'a> IntoIterator for &'a LookupRecords
[src]
type Item = &'a Record
The type of the elements being iterated over.
type IntoIter = LookupRecordsIter<'a>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl LookupObject for LookupRecords
[src]
Auto Trait Implementations
impl RefUnwindSafe for LookupRecords
impl Send for LookupRecords
impl Sync for LookupRecords
impl Unpin for LookupRecords
impl UnwindSafe for LookupRecords
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,