[][src]Struct krill::commons::api::RoaDefinitionUpdates

pub struct RoaDefinitionUpdates { /* fields omitted */ }

This type defines a delta of Route Authorizations, i.e. additions or removals of authorizations of tuples of (Prefix, Max Length, ASN) that ultimately are put into ROAs by a CA, in as far as the CA has the required prefixes on its resource certificates.

Multiple updates are sent as a single delta, because it's important that all authorizations for a given prefix are published together in order to avoid invalidating announcements.

Implementations

impl RoaDefinitionUpdates[src]

pub fn new(
    added: HashSet<RoaDefinition>,
    removed: HashSet<RoaDefinition>
) -> Self
[src]

pub fn unpack(self) -> (HashSet<RoaDefinition>, HashSet<RoaDefinition>)[src]

Unpack this and return all added (left), and all removed (right) route authorizations.

pub fn empty() -> Self[src]

pub fn add(&mut self, add: RoaDefinition)[src]

pub fn added(&self) -> &HashSet<RoaDefinition>[src]

pub fn removed(&self) -> &HashSet<RoaDefinition>[src]

pub fn remove(&mut self, rem: RoaDefinition)[src]

Trait Implementations

impl Clone for RoaDefinitionUpdates[src]

impl Debug for RoaDefinitionUpdates[src]

impl Default for RoaDefinitionUpdates[src]

impl<'de> Deserialize<'de> for RoaDefinitionUpdates[src]

impl Display for RoaDefinitionUpdates[src]

impl Eq for RoaDefinitionUpdates[src]

impl From<RoaDefinitionUpdates> for RouteAuthorizationUpdates[src]

impl From<RouteAuthorizationUpdates> for RoaDefinitionUpdates[src]

impl FromStr for RoaDefinitionUpdates[src]

type Err = AuthorizationFmtError

The associated error which can be returned from parsing.

impl PartialEq<RoaDefinitionUpdates> for RoaDefinitionUpdates[src]

impl Serialize for RoaDefinitionUpdates[src]

impl StructuralEq for RoaDefinitionUpdates[src]

impl StructuralPartialEq for RoaDefinitionUpdates[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.