Struct hickory_resolver::name_server::GenericConnector
source · 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>
§type Conn = GenericConnection
type Conn = GenericConnection
The handle to the connect for sending DNS requests.
§type FutureConn = ConnectionFuture<P>
type FutureConn = ConnectionFuture<P>
Ths future is responsible for spawning any background tasks as necessary.
§type RuntimeProvider = P
type RuntimeProvider = P
Provider that handles the underlying I/O and timing.
source§fn new_connection(
&self,
config: &NameServerConfig,
options: &ResolverOpts
) -> Self::FutureConn
fn new_connection( &self, config: &NameServerConfig, options: &ResolverOpts ) -> Self::FutureConn
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