Struct trust_dns_server::authority::LookupOptions
source · [−]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
sourceimpl LookupOptions
impl LookupOptions
Lookup Options for the request to the authority
sourcepub fn for_dnssec(
is_dnssec: bool,
supported_algorithms: SupportedAlgorithms
) -> Self
This is supported 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
This is supported 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
This is supported 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
sourceimpl Clone for LookupOptions
impl Clone for LookupOptions
sourcefn clone(&self) -> LookupOptions
fn clone(&self) -> LookupOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LookupOptions
impl Debug for LookupOptions
sourceimpl Default for LookupOptions
impl Default for LookupOptions
sourcefn default() -> LookupOptions
fn default() -> LookupOptions
Returns the “default value” for a type. Read more
impl Copy for LookupOptions
Auto Trait Implementations
impl RefUnwindSafe for LookupOptions
impl Send for LookupOptions
impl Sync for LookupOptions
impl Unpin for LookupOptions
impl UnwindSafe for LookupOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more