pub struct SystemResolver;Expand description
The system resolver: an IP literal in place, everything else through
getaddrinfo.
What it answers is A and AAAA records, so the whole set shares one port —
the one the URL wrote, or DEFAULT_PORT when it wrote none. That covers
a literal, a plain name and a Kubernetes headless Service, whose A/AAAA
answer is the set of Pod addresses. It cannot express a port-forwarding
load balancer; Resolver is how that deployment brings its own answer.
Trait Implementations§
Source§impl Clone for SystemResolver
impl Clone for SystemResolver
Source§fn clone(&self) -> SystemResolver
fn clone(&self) -> SystemResolver
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 moreimpl Copy for SystemResolver
Source§impl Debug for SystemResolver
impl Debug for SystemResolver
Source§impl Default for SystemResolver
impl Default for SystemResolver
Source§fn default() -> SystemResolver
fn default() -> SystemResolver
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SystemResolver
impl RefUnwindSafe for SystemResolver
impl Send for SystemResolver
impl Sync for SystemResolver
impl Unpin for SystemResolver
impl UnsafeUnpin for SystemResolver
impl UnwindSafe for SystemResolver
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