[][src]Struct rpki::resources::IpResources

pub struct IpResources(_);

The IP Address Resources of an RPKI Certificate.

This type contains the resources for one of the address families that can be contained in the certificate.

Methods

impl IpResources[src]

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

Returns whether the resources are of the inherited variant.

pub fn as_blocks(&self) -> Option<&IpBlocks>[src]

Returns a reference to the blocks if there are any.

pub fn to_blocks(&self) -> Result<IpBlocks, ValidationError>[src]

Converts the resources into blocks or returns an error.

impl IpResources[src]

pub fn take_families_from<S: Source>(
    cons: &mut Constructed<S>
) -> Result<(Option<Self>, Option<Self>), S::Err>
[src]

Takes all IP resources from the beginning of a constructed value.

On success, the function returns a pair of optional IP resources, the first for IPv4, the second for IPv6.

pub fn take_from<S: Source>(cons: &mut Constructed<S>) -> Result<Self, S::Err>[src]

Takes a single set of IP resources from a constructed value.

pub fn encode_families(
    v4: Option<Self>,
    v6: Option<Self>
) -> Option<impl Values>
[src]

pub fn encode(self) -> impl Values[src]

Trait Implementations

impl Clone for IpResources[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for IpResources[src]

Auto Trait Implementations

impl Send for IpResources

impl Sync for IpResources

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.