Struct mhost::resolver::ResolverGroup
source · pub struct ResolverGroup { /* private fields */ }
Implementations§
source§impl ResolverGroup
impl ResolverGroup
pub fn new<T: Into<Vec<Resolver>>>( resolvers: T, opts: ResolverGroupOpts ) -> Self
pub async fn from_configs<T: IntoIterator<Item = ResolverConfig>>( configs: T, resolver_opts: ResolverOpts, opts: ResolverGroupOpts ) -> Result<Self>
pub async fn from_system_config(opts: ResolverGroupOpts) -> Result<Self>
pub async fn lookup<T: Into<MultiQuery>>( &self, query: T ) -> ResolverResult<Lookups>
sourcepub fn merge(&mut self, other: Self)
pub fn merge(&mut self, other: Self)
Merges this ResolverGroup
with another
Attention: the ResolverGroupOpts
of this ResolverGroup
will apply
pub fn add(&mut self, resolver: Resolver)
pub fn set_opts(&mut self, opts: ResolverGroupOpts)
pub fn opts(&self) -> &ResolverGroupOpts
pub fn resolvers(&self) -> &[Resolver]
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations§
source§impl Debug for ResolverGroup
impl Debug for ResolverGroup
source§impl Estimate for ResolverGroup
impl Estimate for ResolverGroup
fn estimate(&self, query: &MultiQuery) -> Estimation
Auto Trait Implementations§
impl !RefUnwindSafe for ResolverGroup
impl Send for ResolverGroup
impl Sync for ResolverGroup
impl Unpin for ResolverGroup
impl !UnwindSafe for ResolverGroup
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