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, dnssec_ok (DO) will include RRSIG in the response.
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(dnssec_ok: bool) -> Self
Available on crate feature __dnssec only.
pub fn for_dnssec(dnssec_ok: bool) -> Self
__dnssec only.Return a new LookupOptions
Sourcepub fn set_dnssec_ok(self, val: bool) -> Self
pub fn set_dnssec_ok(self, val: bool) -> Self
Specify that this lookup should return DNSSEC related records as well, e.g. RRSIG
Sourcepub fn dnssec_ok(&self) -> bool
pub fn dnssec_ok(&self) -> bool
If true this lookup should return DNSSEC related records as well, e.g. RRSIG
Sourcepub fn rrset_with_rrigs<'r>(
&self,
record_set: &'r RecordSet,
) -> RrsetRecords<'r>
pub fn rrset_with_rrigs<'r>( &self, record_set: &'r RecordSet, ) -> RrsetRecords<'r>
Returns the rrset’s records with or without RRSIGs, depending on the DO flag.
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