pub struct RecursorBuilder { /* private fields */ }
Expand description
A Recursor
builder
Implementations§
Source§impl RecursorBuilder
impl RecursorBuilder
Sourcepub fn ns_cache_size(self, size: usize) -> Self
pub fn ns_cache_size(self, size: usize) -> Self
Sets the size of the list of cached name servers
Sourcepub fn record_cache_size(self, size: usize) -> Self
pub fn record_cache_size(self, size: usize) -> Self
Sets the size of the list of cached records
Sourcepub fn recursion_limit(self, limit: Option<u8>) -> Self
pub fn recursion_limit(self, limit: Option<u8>) -> Self
Sets the maximum recursion depth for queries; set to None for unlimited recursion.
Sourcepub fn ns_recursion_limit(self, limit: Option<u8>) -> Self
pub fn ns_recursion_limit(self, limit: Option<u8>) -> Self
Sets the maximum recursion depth for building NS pools; set to None for unlimited recursion.
Sourcepub fn dnssec_policy(self, dnssec_policy: DnssecPolicy) -> Self
pub fn dnssec_policy(self, dnssec_policy: DnssecPolicy) -> Self
Sets the DNSSEC policy
Sourcepub fn nameserver_filter<'a>(
self,
allow: impl Iterator<Item = &'a IpNet>,
deny: impl Iterator<Item = &'a IpNet>,
) -> Self
pub fn nameserver_filter<'a>( self, allow: impl Iterator<Item = &'a IpNet>, deny: impl Iterator<Item = &'a IpNet>, ) -> Self
Add networks that should not be queried during recursive resolution
Sourcepub fn avoid_local_udp_ports(self, ports: HashSet<u16>) -> Self
pub fn avoid_local_udp_ports(self, ports: HashSet<u16>) -> Self
Sets local UDP ports that should be avoided when making outgoing queries
Sourcepub fn ttl_config(self, ttl_config: TtlConfig) -> Self
pub fn ttl_config(self, ttl_config: TtlConfig) -> Self
Sets the minimum and maximum TTL values for cached responses
Sourcepub fn case_randomization(self, case_randomization: bool) -> Self
pub fn case_randomization(self, case_randomization: bool) -> Self
Enable case randomization.
Sets whether to randomize the case of letters in query names, and require that responses preserve the case.
Trait Implementations§
Source§impl Clone for RecursorBuilder
impl Clone for RecursorBuilder
Source§fn clone(&self) -> RecursorBuilder
fn clone(&self) -> RecursorBuilder
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 moreAuto Trait Implementations§
impl Freeze for RecursorBuilder
impl RefUnwindSafe for RecursorBuilder
impl Send for RecursorBuilder
impl Sync for RecursorBuilder
impl Unpin for RecursorBuilder
impl UnwindSafe for RecursorBuilder
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