Struct domain::resolv::lookup::addr::FoundAddrs[][src]

pub struct FoundAddrs<R: Resolver>(_);

The success type of the lookup_addr() function.

The only purpose of this type is to return an iterator over host names via its iter() method.

Implementations

impl<R: Resolver> FoundAddrs<R>[src]

pub fn iter(&self) -> FoundAddrsIter<&R::Octets>

Notable traits for FoundAddrsIter<Ref>

impl<Ref: OctetsRef> Iterator for FoundAddrsIter<Ref> type Item = ParsedDname<Ref>;
where
    &'a R::Octets: OctetsRef
[src]

Returns an iterator over the host names.

Trait Implementations

impl<'a, R: Resolver> IntoIterator for &'a FoundAddrs<R> where
    &'x R::Octets: OctetsRef
[src]

type Item = ParsedDname<&'a R::Octets>

The type of the elements being iterated over.

type IntoIter = FoundAddrsIter<&'a R::Octets>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<R> RefUnwindSafe for FoundAddrs<R> where
    <R as Resolver>::Answer: RefUnwindSafe

impl<R> Send for FoundAddrs<R> where
    <R as Resolver>::Answer: Send

impl<R> Sync for FoundAddrs<R> where
    <R as Resolver>::Answer: Sync

impl<R> Unpin for FoundAddrs<R> where
    <R as Resolver>::Answer: Unpin

impl<R> UnwindSafe for FoundAddrs<R> where
    <R as Resolver>::Answer: UnwindSafe

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Source, Target> OctetsInto<Target> for Source where
    Target: OctetsFrom<Source>, 
[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>,