pub trait Resolver {
    fn resolve_specific(&self, query: QueryType) -> ResolveResult<Record>;
fn resolve_many<I: Iterator<Item = QueryType>>(
        &self,
        queries: I
    ) -> ResolveResult<Vec<Record>>; fn resolve(&self) -> ResolveResult<IpAddr> { ... }
fn clear_cache(&self) -> Result<(), ()> { ... }
fn reload_system_config(&self) -> Result<(), ()> { ... } }
Expand description

The simplified interface that all resolvers share

Required methods

Provided methods

Resolve IPv6 and IPv4

Potentially clear the cache of the actual implementation

Returns Ok if implemented

If the system settings are cached reload them

Returns ok if implemented

Implementors