[][src]Struct rpki::resources::AsId

pub struct AsId(_);

An AS number.

Methods

impl AsId[src]

pub const MIN: AsId[src]

pub const MAX: AsId[src]

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

Takes an AS number from the beginning of an encoded value.

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

Trait Implementations

impl From<AsId> for AsBlock[src]

impl From<u32> for AsId[src]

impl From<AsId> for u32[src]

impl Clone for AsId[src]

impl Copy for AsId[src]

impl Eq for AsId[src]

impl Ord for AsId[src]

impl PartialEq<AsId> for AsId[src]

impl PartialOrd<AsId> for AsId[src]

impl Display for AsId[src]

impl Debug for AsId[src]

impl FromStr for AsId[src]

type Err = FromStrError

The associated error which can be returned from parsing.

impl Add<u32> for AsId[src]

type Output = Self

The resulting type after applying the + operator.

impl Hash for AsId[src]

Auto Trait Implementations

impl Send for AsId

impl Sync for AsId

impl Unpin for AsId

impl UnwindSafe for AsId

impl RefUnwindSafe for AsId

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> 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.

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]