Struct hyper_dns::DnsConnector [−][src]
pub struct DnsConnector<C> { /* fields omitted */ }
A connector that wraps another connector and provides custom DNS resolution.
Methods
impl<C> DnsConnector<C> where
C: Connect,
[src]
impl<C> DnsConnector<C> where
C: Connect,
pub fn new(dns_addr: SocketAddr, connector: C) -> DnsConnector<C>
[src]
pub fn new(dns_addr: SocketAddr, connector: C) -> DnsConnector<C>
pub fn new_with_resolve_type(
dns_addr: SocketAddr,
connector: C,
record_type: RecordType
) -> DnsConnector<C>
[src]
pub fn new_with_resolve_type(
dns_addr: SocketAddr,
connector: C,
record_type: RecordType
) -> DnsConnector<C>
Docs
Trait Implementations
impl<C: Debug> Debug for DnsConnector<C>
[src]
impl<C: Debug> Debug for DnsConnector<C>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<C: Clone> Clone for DnsConnector<C>
[src]
impl<C: Clone> Clone for DnsConnector<C>
fn clone(&self) -> DnsConnector<C>
[src]
fn clone(&self) -> DnsConnector<C>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<C> Service for DnsConnector<C> where
C: Service<Request = Uri, Error = Error> + 'static,
C: Clone,
[src]
impl<C> Service for DnsConnector<C> where
C: Service<Request = Uri, Error = Error> + 'static,
C: Clone,
type Request = C::Request
Requests handled by the service.
type Response = C::Response
Responses given by the service.
type Error = C::Error
Errors produced by the service.
type Future = Box<Future<Item = <C::Future as Future>::Item, Error = <C::Future as Future>::Error>>
The future response value.
fn call(&self, uri: Uri) -> Self::Future
[src]
fn call(&self, uri: Uri) -> Self::Future
Process the request and return the response asynchronously.
Auto Trait Implementations
impl<C> Send for DnsConnector<C> where
C: Send,
impl<C> Send for DnsConnector<C> where
C: Send,
impl<C> Sync for DnsConnector<C> where
C: Sync,
impl<C> Sync for DnsConnector<C> where
C: Sync,