[][src]Struct routinator::origins::AddressOrigins

pub struct AddressOrigins { /* fields omitted */ }

A set of address origin statements.

This type contains a list of AddressOrigin statements. While it is indeed a set, that is, it doesn’t contain duplicates, it is accessible like a slice of address origins, to which it even derefs. This is so that we can iterate over the set using indexes instead of references, avoiding self-referential types in futures.

Methods

impl AddressOrigins[src]

pub fn new() -> Self[src]

Creates a new, empty set of address origins.

pub fn from_report(
    report: OriginsReport,
    exceptions: &LocalExceptions,
    extra_info: bool,
    metrics: &mut Metrics
) -> Self
[src]

Creates a set from the raw route origins and exceptions.

The function will take all the address origins in origins, drop duplicates, drop the origins filtered in execptions and add the assertions from exceptions.

pub fn iter(&self) -> Iter<AddressOrigin>[src]

Returns an iterator over the address orgins.

Trait Implementations

impl AsRef<AddressOrigins> for AddressOrigins[src]

impl AsRef<[AddressOrigin]> for AddressOrigins[src]

impl From<HashSet<AddressOrigin, RandomState>> for AddressOrigins[src]

impl Clone for AddressOrigins[src]

impl Default for AddressOrigins[src]

impl Deref for AddressOrigins[src]

type Target = [AddressOrigin]

The resulting type after dereferencing.

impl Debug for AddressOrigins[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for 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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err