pub struct GenericConnector<P: RuntimeProvider> { /* private fields */ }
Expand description
Default connector for GenericConnection
Implementations§
Source§impl<P: RuntimeProvider> GenericConnector<P>
impl<P: RuntimeProvider> GenericConnector<P>
Trait Implementations§
Source§impl<P: Clone + RuntimeProvider> Clone for GenericConnector<P>
impl<P: Clone + RuntimeProvider> Clone for GenericConnector<P>
Source§fn clone(&self) -> GenericConnector<P>
fn clone(&self) -> GenericConnector<P>
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<P: RuntimeProvider> ConnectionProvider for GenericConnector<P>
impl<P: RuntimeProvider> ConnectionProvider for GenericConnector<P>
Source§type Conn = GenericConnection
type Conn = GenericConnection
The handle to the connection for sending DNS requests.
Source§type FutureConn = ConnectionFuture<P>
type FutureConn = ConnectionFuture<P>
Ths future is responsible for spawning any background tasks as necessary.
Source§type RuntimeProvider = P
type RuntimeProvider = P
Provider that handles the underlying I/O and timing.
Source§fn new_connection(
&self,
config: &NameServerConfig,
options: &ResolverOpts,
) -> Result<Self::FutureConn, Error>
fn new_connection( &self, config: &NameServerConfig, options: &ResolverOpts, ) -> Result<Self::FutureConn, Error>
Create a new connection.
Source§impl<P: RuntimeProvider + Default> Default for GenericConnector<P>
impl<P: RuntimeProvider + Default> Default for GenericConnector<P>
Auto Trait Implementations§
impl<P> Freeze for GenericConnector<P>where
P: Freeze,
impl<P> RefUnwindSafe for GenericConnector<P>where
P: RefUnwindSafe,
impl<P> Send for GenericConnector<P>
impl<P> Sync for GenericConnector<P>
impl<P> Unpin for GenericConnector<P>
impl<P> UnwindSafe for GenericConnector<P>where
P: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)