[][src]Struct routinator::origins::RouteOrigins

pub struct RouteOrigins { /* fields omitted */ }

The raw list of route origin attestations from RPKI.

This type is used to collect all the valid route origins as they fall out of RPKI repository validation. It is an intermediary type used as input for generating the real origins kept in AddressOrigins.

Methods

impl RouteOrigins[src]

pub fn new(tal: Arc<TalInfo>) -> Self[src]

Creates a new, empty list of route origins.

pub fn push(&mut self, attestation: RouteOriginAttestation)[src]

Appends the given attestation to the set.

The attestation will simply be added to the end of the list. No checking for duplicates is being done.

pub fn update_refresh(&mut self, cert: &TbsCert)[src]

Updates the refresh time.

If the time given is earlier than our current refresh time, sets the time given as the new refresh time.

pub fn is_empty(&self) -> bool[src]

Returns whether the list of attestations is empty.

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

Returns the number of attestations in the list.

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

Returns an iterator over the attestations in the list.

Trait Implementations

impl IntoIterator for RouteOrigins[src]

type Item = RouteOriginAttestation

The type of the elements being iterated over.

type IntoIter = IntoIter<RouteOriginAttestation>

Which kind of iterator are we turning this into?

impl<'a> IntoIterator for &'a RouteOrigins[src]

type Item = &'a RouteOriginAttestation

The type of the elements being iterated over.

type IntoIter = Iter<'a, RouteOriginAttestation>

Which kind of iterator are we turning this into?

impl Clone for RouteOrigins[src]

impl Debug for RouteOrigins[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<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<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