pub struct LookupOptions { /* private fields */ }Expand description
LookupOptions that specify different options from the client to include or exclude various records in the response.
For example, is_dnssec will include RRSIG in the response, supported_algorithms will only include a subset of
RRSIG based on the algorithms supported by the request.
Implementations§
Source§impl LookupOptions
Lookup Options for the request to the authority
impl LookupOptions
Lookup Options for the request to the authority
Sourcepub fn for_dnssec(
is_dnssec: bool,
supported_algorithms: SupportedAlgorithms,
) -> Self
Available on crate feature dnssec only.
pub fn for_dnssec( is_dnssec: bool, supported_algorithms: SupportedAlgorithms, ) -> Self
dnssec only.Return a new LookupOptions
Sourcepub fn set_is_dnssec(self, val: bool) -> Self
pub fn set_is_dnssec(self, val: bool) -> Self
Specify that this lookup should return DNSSEC related records as well, e.g. RRSIG
Sourcepub fn is_dnssec(&self) -> bool
pub fn is_dnssec(&self) -> bool
If true this lookup should return DNSSEC related records as well, e.g. RRSIG
Sourcepub fn set_supported_algorithms(self, val: SupportedAlgorithms) -> Self
Available on crate feature dnssec only.
pub fn set_supported_algorithms(self, val: SupportedAlgorithms) -> Self
dnssec only.Specify the algorithms for which DNSSEC records should be returned
Sourcepub fn supported_algorithms(&self) -> SupportedAlgorithms
Available on crate feature dnssec only.
pub fn supported_algorithms(&self) -> SupportedAlgorithms
dnssec only.The algorithms for which DNSSEC records should be returned
Sourcepub fn rrset_with_supported_algorithms<'r>(
&self,
record_set: &'r RecordSet,
) -> RrsetRecords<'r>
pub fn rrset_with_supported_algorithms<'r>( &self, record_set: &'r RecordSet, ) -> RrsetRecords<'r>
Returns the subset of the rrset limited to the supported_algorithms
Trait Implementations§
Source§impl Clone for LookupOptions
impl Clone for LookupOptions
Source§fn clone(&self) -> LookupOptions
fn clone(&self) -> LookupOptions
Returns a duplicate 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 LookupOptions
impl Debug for LookupOptions
Source§impl Default for LookupOptions
impl Default for LookupOptions
Source§fn default() -> LookupOptions
fn default() -> LookupOptions
Returns the “default value” for a type. Read more
impl Copy for LookupOptions
Auto Trait Implementations§
impl Freeze for LookupOptions
impl RefUnwindSafe for LookupOptions
impl Send for LookupOptions
impl Sync for LookupOptions
impl Unpin for LookupOptions
impl UnwindSafe for LookupOptions
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