Struct mhost::resolver::ResolverGroup [−][src]
Implementations
impl ResolverGroup
[src]
pub fn new<T: Into<Vec<Resolver>>>(
resolvers: T,
opts: ResolverGroupOpts
) -> Self
[src]
resolvers: T,
opts: ResolverGroupOpts
) -> Self
pub async fn from_configs<T: IntoIterator<Item = ResolverConfig>>(
configs: T,
resolver_opts: ResolverOpts,
opts: ResolverGroupOpts
) -> Result<Self>
[src]
configs: T,
resolver_opts: ResolverOpts,
opts: ResolverGroupOpts
) -> Result<Self>
pub async fn from_system_config(opts: ResolverGroupOpts) -> Result<Self>
[src]
pub async fn lookup<T: Into<MultiQuery>>(
&self,
query: T
) -> ResolverResult<Lookups>
[src]
&self,
query: T
) -> ResolverResult<Lookups>
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]
fn estimate(&self, query: &MultiQuery) -> Estimation
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,