[−][src]Struct rpki::resources::AsBlocks
A possibly empty sequence of consecutive sets of AS numbers.
Methods
impl AsBlocks
[src]
pub fn empty() -> Self
[src]
Creates empty AS blocks.
pub fn from_resources(
res: Option<&AsResources>
) -> Result<Self, ValidationError>
[src]
res: Option<&AsResources>
) -> Result<Self, ValidationError>
Creates AS blocks from AS resources.
If the AS resources are of the inherited variant, a validation error is returned.
pub fn is_empty(&self) -> bool
[src]
Returns whether the blocks is empty.
pub fn iter(&self) -> impl Iterator<Item = &AsBlock>
[src]
Returns an iterator over the individual AS number blocks.
pub fn validate_issued(
&self,
res: Option<&AsResources>,
mode: Overclaim
) -> Result<AsBlocks, ValidationError>
[src]
&self,
res: Option<&AsResources>,
mode: Overclaim
) -> Result<AsBlocks, ValidationError>
Validates AS resources issued under these blocks.
impl AsBlocks
[src]
pub fn contains(&self, other: &Self) -> bool
[src]
Returns whether this AsBlocks contains the other in its entirety.
pub fn intersection(&self, other: &Self) -> Self
[src]
Return the intersection of this AsBlocks and the other. I.e. all resources which are found in both.
pub fn union(&self, other: &Self) -> Self
[src]
Returns a new AsBlocks with the union of this and the other AsBlocks.
i.e. all resources found in one or both AsBlocks.
impl AsBlocks
[src]
Trait Implementations
impl Clone for AsBlocks
[src]
impl Eq for AsBlocks
[src]
impl PartialEq<AsBlocks> for AsBlocks
[src]
impl Display for AsBlocks
[src]
impl Debug for AsBlocks
[src]
impl FromStr for AsBlocks
[src]
type Err = FromStrError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl FromIterator<AsBlock> for AsBlocks
[src]
fn from_iter<I: IntoIterator<Item = AsBlock>>(iter: I) -> Self
[src]
impl Serialize for AsBlocks
[src]
impl<'de> Deserialize<'de> for AsBlocks
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
Auto Trait Implementations
impl Send for AsBlocks
impl Sync for AsBlocks
impl Unpin for AsBlocks
impl UnwindSafe for AsBlocks
impl RefUnwindSafe for AsBlocks
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,