[][src]Trait domain_resolv::resolver::SearchNames

pub trait SearchNames {
    type Name: ToDname;
    type Iter: Iterator<Item = Self::Name>;
    fn search_iter(&self) -> Self::Iter;
}

A type that can produce a list of name suffixes.

Legacy systems have the ability to interpret relative domain names as within the local system. They provide a list of suffixes that can be attached to the name to make it absolute.

A search resolver is a resolver that provides such a list. This is implemented via an iterator over domain names.

Associated Types

type Name: ToDname

type Iter: Iterator<Item = Self::Name>

Loading content...

Required methods

fn search_iter(&self) -> Self::Iter

Returns an iterator over the search suffixes.

Loading content...

Implementors

impl<'a> SearchNames for &'a StubResolver[src]

type Name = SearchSuffix

type Iter = SearchIter<'a>

Loading content...