pub struct AsyncTrustDnsResolver { /* private fields */ }Implementations§
Source§impl AsyncTrustDnsResolver
impl AsyncTrustDnsResolver
pub fn new(config: ResolverConfig, options: ResolverOpts) -> Result<Self, Error>
pub fn with_net_v4_blacklist(&mut self, blacklist: Vec<Ipv4Net>)
pub fn with_net_v6_blacklist(&mut self, blacklist: Vec<Ipv6Net>)
Trait Implementations§
Source§impl Clone for AsyncTrustDnsResolver
impl Clone for AsyncTrustDnsResolver
Source§fn clone(&self) -> AsyncTrustDnsResolver
fn clone(&self) -> AsyncTrustDnsResolver
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 AsyncTrustDnsResolver
impl Debug for AsyncTrustDnsResolver
Auto Trait Implementations§
impl Freeze for AsyncTrustDnsResolver
impl !RefUnwindSafe for AsyncTrustDnsResolver
impl Send for AsyncTrustDnsResolver
impl Sync for AsyncTrustDnsResolver
impl Unpin for AsyncTrustDnsResolver
impl !UnwindSafe for AsyncTrustDnsResolver
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