[][src]Struct domain::base::opt::OptIter

pub struct OptIter<Ref: OctetsRef, D: ParseOptData<Ref>> { /* fields omitted */ }

An iterator over the options of an OPT record.

The iterator is generic over a specific option type. It skips over all options that this type does not want to parse. It returns a result that is either a parsed option or a parse error. These errors are only for the particular option. After such an error you can continue to iterate until None indicates that you’ve reached the end of the record.

Trait Implementations

impl<Ref: Clone + OctetsRef, D: Clone + ParseOptData<Ref>> Clone for OptIter<Ref, D>[src]

impl<Ref: Debug + OctetsRef, D: Debug + ParseOptData<Ref>> Debug for OptIter<Ref, D>[src]

impl<Ref, Data> Iterator for OptIter<Ref, Data> where
    Ref: OctetsRef,
    Data: ParseOptData<Ref>, 
[src]

type Item = Result<Data, ParseError>

The type of the elements being iterated over.

Auto Trait Implementations

impl<Ref, D> RefUnwindSafe for OptIter<Ref, D> where
    D: RefUnwindSafe,
    Ref: RefUnwindSafe

impl<Ref, D> Send for OptIter<Ref, D> where
    D: Send,
    Ref: Send

impl<Ref, D> Sync for OptIter<Ref, D> where
    D: Sync,
    Ref: Sync

impl<Ref, D> Unpin for OptIter<Ref, D> where
    D: Unpin,
    Ref: Unpin

impl<Ref, D> UnwindSafe for OptIter<Ref, D> where
    D: UnwindSafe,
    Ref: 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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[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>,