pub struct Resolver { /* private fields */ }
Implementations§
source§impl Resolver
impl Resolver
sourcepub async fn new(
config: ResolverConfig,
opts: ResolverOpts
) -> ResolverResult<Self>
pub async fn new( config: ResolverConfig, opts: ResolverOpts ) -> ResolverResult<Self>
Creates a new Resolver.
May panic if underlying tasks panic
pub async fn lookup<T: Into<MultiQuery>>( &self, query: T ) -> ResolverResult<Lookups>
pub fn name(&self) -> String
Trait Implementations§
source§impl Estimate for Resolver
impl Estimate for Resolver
fn estimate(&self, query: &MultiQuery) -> Estimation
Auto Trait Implementations§
impl !RefUnwindSafe for Resolver
impl Send for Resolver
impl Sync for Resolver
impl Unpin for Resolver
impl !UnwindSafe for Resolver
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