pub struct BoxResolver(/* private fields */);Expand description
Adapts an Arc<dyn DnsResolver> into a tower_service::Service<Name> that hyper-util’s
HttpConnector accepts. This is the bridge between our trait and hyper-util internals.
This is a public type because it appears in the ResolverClient and ResolverHttpsClient
type aliases, but it is not intended for direct use by library consumers.
Trait Implementations§
Source§impl Clone for BoxResolver
impl Clone for BoxResolver
Source§fn clone(&self) -> BoxResolver
fn clone(&self) -> BoxResolver
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Service<Name> for BoxResolver
impl Service<Name> for BoxResolver
Source§type Response = BoxResolverAddrs
type Response = BoxResolverAddrs
Responses given by the service.
Source§type Future = Pin<Box<dyn Future<Output = Result<<BoxResolver as Service<Name>>::Response, <BoxResolver as Service<Name>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<BoxResolver as Service<Name>>::Response, <BoxResolver as Service<Name>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl !RefUnwindSafe for BoxResolver
impl !UnwindSafe for BoxResolver
impl Freeze for BoxResolver
impl Send for BoxResolver
impl Sync for BoxResolver
impl Unpin for BoxResolver
impl UnsafeUnpin for BoxResolver
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