Struct mhost::resolver::ResolverGroup[][src]

pub struct ResolverGroup { /* fields omitted */ }

Implementations

impl ResolverGroup[src]

pub fn new<T: Into<Vec<Resolver>>>(
    resolvers: T,
    opts: ResolverGroupOpts
) -> Self
[src]

pub async fn from_configs<T: IntoIterator<Item = ResolverConfig>>(
    configs: T,
    resolver_opts: ResolverOpts,
    opts: ResolverGroupOpts
) -> Result<Self>
[src]

pub async fn from_system_config(opts: ResolverGroupOpts) -> Result<Self>[src]

pub async fn lookup<T: Into<MultiQuery>>(
    &self,
    query: T
) -> ResolverResult<Lookups>
[src]

pub fn merge(&mut self, other: Self)[src]

Merges this ResolverGroup with another

Attention: the ResolverGroupOpts of this ResolverGroup will apply

pub fn add(&mut self, resolver: Resolver)[src]

pub fn set_opts(&mut self, opts: ResolverGroupOpts)[src]

pub fn opts(&self) -> &ResolverGroupOpts[src]

pub fn resolvers(&self) -> &[Resolver][src]

pub fn len(&self) -> usize[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl Debug for ResolverGroup[src]

impl Estimate for ResolverGroup[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]