pub struct AsyncConnectionProvider<N>where
N: Net,{ /* private fields */ }Available on crate feature
dns only.Expand description
Create DnsHandle with the help of AsyncRuntimeProvider.
Implementations§
Source§impl<N> AsyncConnectionProvider<N>where
N: Net,
impl<N> AsyncConnectionProvider<N>where
N: Net,
Sourcepub fn new() -> AsyncConnectionProvider<N>
pub fn new() -> AsyncConnectionProvider<N>
Create a new AsyncConnectionProvider.
Trait Implementations§
Source§impl<N> Clone for AsyncConnectionProvider<N>where
N: Net,
impl<N> Clone for AsyncConnectionProvider<N>where
N: Net,
Source§fn clone(&self) -> AsyncConnectionProvider<N>
fn clone(&self) -> AsyncConnectionProvider<N>
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<N> ConnectionProvider for AsyncConnectionProvider<N>where
N: Net,
impl<N> ConnectionProvider for AsyncConnectionProvider<N>where
N: Net,
Source§type Conn = <GenericConnector<AsyncRuntimeProvider<N>> as ConnectionProvider>::Conn
type Conn = <GenericConnector<AsyncRuntimeProvider<N>> as ConnectionProvider>::Conn
The handle to the connection for sending DNS requests.
Source§type FutureConn = <GenericConnector<AsyncRuntimeProvider<N>> as ConnectionProvider>::FutureConn
type FutureConn = <GenericConnector<AsyncRuntimeProvider<N>> as ConnectionProvider>::FutureConn
Ths future is responsible for spawning any background tasks as necessary.
Source§type RuntimeProvider = AsyncRuntimeProvider<N>
type RuntimeProvider = AsyncRuntimeProvider<N>
Provider that handles the underlying I/O and timing.
Source§fn new_connection(
&self,
config: &NameServerConfig,
options: &ResolverOpts,
) -> Result<<AsyncConnectionProvider<N> as ConnectionProvider>::FutureConn, Error>
fn new_connection( &self, config: &NameServerConfig, options: &ResolverOpts, ) -> Result<<AsyncConnectionProvider<N> as ConnectionProvider>::FutureConn, Error>
Create a new connection.
Source§impl<N> Default for AsyncConnectionProvider<N>where
N: Net,
impl<N> Default for AsyncConnectionProvider<N>where
N: Net,
Source§fn default() -> AsyncConnectionProvider<N>
fn default() -> AsyncConnectionProvider<N>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<N> Freeze for AsyncConnectionProvider<N>
impl<N> RefUnwindSafe for AsyncConnectionProvider<N>where
N: RefUnwindSafe,
impl<N> Send for AsyncConnectionProvider<N>
impl<N> Sync for AsyncConnectionProvider<N>
impl<N> Unpin for AsyncConnectionProvider<N>
impl<N> UnsafeUnpin for AsyncConnectionProvider<N>
impl<N> UnwindSafe for AsyncConnectionProvider<N>where
N: 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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more