[−][src]Struct routinator::origins::RouteOrigins
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?
fn into_iter(self) -> Self::IntoIter
[src]
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?
fn into_iter(self) -> Self::IntoIter
[src]
impl Clone for RouteOrigins
[src]
fn clone(&self) -> RouteOrigins
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for RouteOrigins
[src]
Auto Trait Implementations
impl Send for RouteOrigins
impl Sync for RouteOrigins
impl Unpin for RouteOrigins
impl UnwindSafe for RouteOrigins
impl RefUnwindSafe for RouteOrigins
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
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?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,