pub struct SharedResolver(/* private fields */);Expand description
The resolver a configuration holds.
An Arc because a runtime’s configuration is cloned per endpoint and a
resolver may hold a cache, a connection to a registry or nothing at all.
Implementations§
Trait Implementations§
Source§fn default() -> SharedResolver
fn default() -> SharedResolver
Returns the “default value” for a type. Read more
Source§fn eq(&self, other: &SharedResolver) -> bool
fn eq(&self, other: &SharedResolver) -> bool
Two shared resolvers are equal when they are the same resolver.
Pointer identity, because a resolver is an implementation and not a value: the connection pool keys on configuration, and two different resolvers must not be treated as one even if they happen to answer the same way today.
Auto Trait Implementations§
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