[][src]Struct routinator::origins::AddressOrigin

pub struct AddressOrigin { /* fields omitted */ }

A validated address orgin.

This is what RFC 6811 calls a ‘Validated ROA Payload.’ It consists of an IP address prefix, a maximum length, and the origin AS number. In addition, the address origin stores information about the trust anchor this origin was derived from.

Methods

impl AddressOrigin[src]

pub fn new(
    as_id: AsId,
    prefix: AddressPrefix,
    max_length: u8,
    info: OriginInfo
) -> Self
[src]

Creates a new address origin without trust anchor information.

pub fn as_id(&self) -> AsId[src]

Returns the origin AS number.

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

Returns the IP address prefix.

pub fn address(&self) -> IpAddr[src]

Returns the address part of the IP address prefix.

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

Returns the length part of the IP address prefix.

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

Returns the maximum authorized route prefix length.

pub fn cert(&self) -> Option<&ResourceCert>[src]

Returns a reference to the resource certificate if available.

pub fn tal_name(&self) -> &str[src]

Returns the name of the TAL that this origin as based on.

If there isn’t one, the name becomes "N/A"

Trait Implementations

impl Clone for AddressOrigin[src]

impl Eq for AddressOrigin[src]

impl PartialEq<AddressOrigin> for AddressOrigin[src]

impl Debug for AddressOrigin[src]

impl Hash for AddressOrigin[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<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?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