Struct mhost::resolver::query::MultiQuery[][src]

pub struct MultiQuery { /* fields omitted */ }

MultiQuery allows to lookup multiple names for multiple record types

It can be easily constructed from a simple UniQuery

Example

let query = UniQuery::new("www.example.com", RecordType::A).unwrap();
let multi_query: MultiQuery = query.into();

Implementations

impl MultiQuery[src]

pub fn new<N: IntoName, S: IntoIterator<Item = N>, T: IntoIterator<Item = RecordType>>(
    names: S,
    record_types: T
) -> ResolverResult<MultiQuery>
[src]

pub fn single<N: IntoName>(
    name: N,
    record_type: RecordType
) -> ResolverResult<MultiQuery>
[src]

Lookup a single name for a single records type

pub fn multi_name<N: IntoName, S: IntoIterator<Item = N>>(
    names: S,
    record_type: RecordType
) -> ResolverResult<MultiQuery>
[src]

Lookup a multiple names for a single records type

pub fn multi_record<N: IntoName, T: IntoIterator<Item = RecordType>>(
    name: N,
    record_types: T
) -> ResolverResult<MultiQuery>
[src]

Lookup a single name for a multiple records types

pub fn into_uni_queries(self) -> Vec<UniQuery>[src]

Converts this MultiQuery into individual UniQuerys

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

Returns number of names of this MultiQuery

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

Returns number of record types of this MultiQuery

Trait Implementations

impl Clone for MultiQuery[src]

impl Debug for MultiQuery[src]

impl From<UniQuery> for MultiQuery[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]