Struct ginepro::DnsResolver[][src]

pub struct DnsResolver { /* fields omitted */ }
Expand description

Implements LookupService by using DNS queries to lookup ServiceDefinition::hostname.

Implementations

Construct a new DnsResolver from env and system configration, e.g resolv.conf.

Trait Implementations

Return a list of unique SocketAddr associated with the provided ServiceDefinition containing the hostname port of the service. If no ip addresses were resolved, an empty HashSet is returned. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Wrap the input message T in a tonic::Request

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more