pub struct DnsConnector<C> { /* private fields */ }
Expand description
A connector that wraps another connector and provides custom DNS resolution.
Implementations§
Source§impl<C> DnsConnector<C>where
C: Connect,
impl<C> DnsConnector<C>where
C: Connect,
pub fn new(dns_addr: SocketAddr, connector: C) -> DnsConnector<C>
Sourcepub fn new_with_resolve_type(
dns_addr: SocketAddr,
connector: C,
record_type: RecordType,
) -> DnsConnector<C>
pub fn new_with_resolve_type( dns_addr: SocketAddr, connector: C, record_type: RecordType, ) -> DnsConnector<C>
Docs
Trait Implementations§
Source§impl<C: Clone> Clone for DnsConnector<C>
impl<C: Clone> Clone for DnsConnector<C>
Source§fn clone(&self) -> DnsConnector<C>
fn clone(&self) -> DnsConnector<C>
Returns a copy 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<C: Debug> Debug for DnsConnector<C>
impl<C: Debug> Debug for DnsConnector<C>
Auto Trait Implementations§
impl<C> Freeze for DnsConnector<C>where
C: Freeze,
impl<C> RefUnwindSafe for DnsConnector<C>where
C: RefUnwindSafe,
impl<C> Send for DnsConnector<C>where
C: Send,
impl<C> Sync for DnsConnector<C>where
C: Sync,
impl<C> Unpin for DnsConnector<C>where
C: Unpin,
impl<C> UnwindSafe for DnsConnector<C>where
C: UnwindSafe,
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