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

pub struct RoaDefinition { /* fields omitted */ }

This type defines the definition of a Route Origin Authorization (ROA), i.e. the originating asn, IPv4 or IPv6 prefix, and optionally a max length.

Implementations

impl RoaDefinition[src]

pub fn new(asn: AsNumber, prefix: TypedPrefix, max_length: Option<u8>) -> Self[src]

pub fn explicit_max_length(self) -> Self[src]

pub fn asn(&self) -> AsNumber[src]

pub fn prefix(&self) -> TypedPrefix[src]

pub fn max_length(&self) -> Option<u8>[src]

pub fn effective_max_length(&self) -> u8[src]

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

pub fn includes(&self, other: &RoaDefinition) -> bool[src]

Returns true if the this definition includes the other definition.

Trait Implementations

impl AsRef<RoaDefinition> for RouteAuthorization[src]

impl AsRef<TypedPrefix> for RoaDefinition[src]

impl Clone for RoaDefinition[src]

impl Copy for RoaDefinition[src]

impl Debug for RoaDefinition[src]

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

impl Display for RoaDefinition[src]

impl Eq for RoaDefinition[src]

impl<'_> From<&'_ RoaDefinition> for ObjectName[src]

impl From<Announcement> for RoaDefinition[src]

impl From<RoaDefinition> for Announcement[src]

impl From<RoaDefinition> for RouteAuthorization[src]

impl From<RouteAuthorization> for RoaDefinition[src]

impl FromStr for RoaDefinition[src]

type Err = AuthorizationFmtError

The associated error which can be returned from parsing.

impl Hash for RoaDefinition[src]

impl Ord for RoaDefinition[src]

impl PartialEq<RoaDefinition> for RoaDefinition[src]

impl PartialOrd<RoaDefinition> for RoaDefinition[src]

impl Serialize for RoaDefinition[src]

impl StructuralEq for RoaDefinition[src]

impl StructuralPartialEq for RoaDefinition[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.