[−][src]Struct routinator::origins::AddressOrigin
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]
as_id: AsId,
prefix: AddressPrefix,
max_length: u8,
info: OriginInfo
) -> Self
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]
fn clone(&self) -> AddressOrigin
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[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
impl Send for AddressOrigin
impl Sync for AddressOrigin
impl Unpin for AddressOrigin
impl UnwindSafe for AddressOrigin
impl RefUnwindSafe for AddressOrigin
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<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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
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>,