pub struct AddressFamilyNumbers(pub u16);
Expand description

The MIB definition of the internet assigned address family numbers. This is encoded as an INTEGER.

Tuple Fields§

§0: u16

Implementations§

source§

impl AddressFamilyNumbers

source

pub const NONE: Self = _

None of the the rest.

source

pub const IPV4: Self = _

IP version 4.

source

pub const IPV6: Self = _

IP version 6.

source

pub const NSAP: Self = _

NSAP

source

pub const HDLC: Self = _

8-bit multidrop

source

pub const BBN_1822: Self = _

source

pub const ALL_802: Self = _

Includes all 802 media plus Ethernet ‘conanical format’.

source

pub const E163: Self = _

source

pub const E164: Self = _

SMDS, Frame Relay, ATM

source

pub const F69: Self = _

Telex

source

pub const X121: Self = _

X.25, Frame Relay

source

pub const IPX: Self = _

Internet Protocol Exchange.

source

pub const APPLE_TALK: Self = _

Apple Talk.

source

pub const DEC_NET_IV: Self = _

DEC Net Phase IV.

source

pub const BANYAN_VINES: Self = _

Banyan Vines.

source

pub const E164_WITH_NSAP: Self = _

E.164 with NSAP format subaddress.

source

pub const DNS: Self = _

Domain Name System.

source

pub const DISTINGUISHED_NAME: Self = _

Distinguished Name.

source

pub const AS_NUMBER: Self = _

16-bit quantity, per the AS number space.

source

pub const XTP_OVER_IPV4: Self = _

XTP over IP version 4

source

pub const XTP_OVER_IPV6: Self = _

XTP over IP version 6

source

pub const XTP_NATIVE_MODE_XTP: Self = _

XTP native mode XTP

source

pub const FIBRE_CHANNEL_WWPN: Self = _

Fibre Channel World-Wide Port Name

source

pub const FIBRE_CHANNEL_WWNN: Self = _

Fibre Channel World-Wide Node Name

source

pub const GWID: Self = _

Gateway Identifier

source

pub const AFI: Self = _

AFI for L2VPN information

source

pub const MPLS_TP_SECTION_ENDPOINT_IDENTIFIER: Self = _

MPLS-TP Section Endpoint Identifier

source

pub const MPLS_TP_LSP_ENDPOINT_IDENTIFIER: Self = _

MPLS-TP LSP Endpoint Identifier

source

pub const MPLS_TP_PSEUDOWIRE_ENDPOINT_IDENTIFIER: Self = _

MPLS-TP Pseudowire Endpoint Identifier

source

pub const MT_IP_MULTI_TOPOLOGY_IP_VERSION_4: Self = _

MT IP: Multi-Topology IP version 4

source

pub const MT_IPV6_MULTI_TOPOLOGY_IP_VERSION_6: Self = _

MT IPv6: Multi-Topology IP version 6

source

pub const BGP_SFC: Self = _

BGP SFC

source

pub const EIGRP_COMMON_SERVICE_FAMILY: Self = _

EIGRP Common Service Family

source

pub const EIGRP_IPV4_SERVICE_FAMILY: Self = _

EIGRP IPv4 Service Family

source

pub const EIGRP_IPV6_SERVICE_FAMILY: Self = _

EIGRP IPv6 Service Family

source

pub const LISP_CANONICAL_ADDRESS_FORMAT: Self = _

LISP Canonical Address Format (LCAF)

source

pub const BGP_LS: Self = _

BGP-LS

source

pub const FORTY_EIGHT_BIT_MAC: Self = _

48-bit MAC

source

pub const SIXTY_FOUR_BIT_MAC: Self = _

64-bit MAC

source

pub const OUI: Self = _

OUI

source

pub const MAC_24: Self = _

MAC/24

source

pub const MAC_40: Self = _

MAC/40

source

pub const IPV6_64: Self = _

IPv6/64

source

pub const R_BRIDGE_PORT_ID: Self = _

RBridge Port ID

source

pub const TRILL_NICKNAME: Self = _

TRILL Nickname

source

pub const UNIVERSALLY_UNIQUE_IDENTIFIER: Self = _

Universally Unique Identifier (UUID)

source

pub const ROUTING_POLICY_AFI: Self = _

Routing Policy AFI

source

pub const RESERVED: Self = _

Reserved for future use.

Trait Implementations§

source§

impl AsnType for AddressFamilyNumbers

source§

const TAG: Tag = { <u16 as rasn::AsnType>::TAG }

The associated tag for the type. Read more
source§

const TAG_TREE: TagTree = _

The root of this type’s tree of tag’s if it a CHOICE type, otherwise its Leaf that points Self::TAG.
source§

const CONSTRAINTS: Constraints<'static> = Constraints::NONE

source§

const IDENTIFIER: Option<&'static str> = None

Identifier of an ASN.1 type as specified in the original specification if not identical with the identifier of Self
source§

impl Debug for AddressFamilyNumbers

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Decode for AddressFamilyNumbers

source§

fn decode_with_tag_and_constraints<'constraints, D: Decoder>( decoder: &mut D, tag: Tag, constraints: Constraints<'constraints>, ) -> Result<Self, D::Error>

source§

fn decode<D>(decoder: &mut D) -> Result<Self, <D as Decoder>::Error>
where D: Decoder,

Decode this value from a given ASN.1 decoder. Read more
source§

fn decode_with_tag<D>( decoder: &mut D, tag: Tag, ) -> Result<Self, <D as Decoder>::Error>
where D: Decoder,

Decode this value implicitly tagged with tag from a given ASN.1 decoder. Read more
source§

fn decode_with_constraints<D>( decoder: &mut D, constraints: Constraints<'_>, ) -> Result<Self, <D as Decoder>::Error>
where D: Decoder,

source§

impl Encode for AddressFamilyNumbers

source§

fn encode_with_tag_and_constraints<'constraints, EN: Encoder>( &self, encoder: &mut EN, tag: Tag, constraints: Constraints<'constraints>, ) -> Result<(), EN::Error>

source§

fn encode<E>(&self, encoder: &mut E) -> Result<(), <E as Encoder>::Error>
where E: Encoder,

Encodes self’s data into the given Encoder. Read more
source§

fn encode_with_tag<E>( &self, encoder: &mut E, tag: Tag, ) -> Result<(), <E as Encoder>::Error>
where E: Encoder,

Encode this value with tag into the given Encoder. Read more
source§

fn encode_with_constraints<E>( &self, encoder: &mut E, constraints: Constraints<'_>, ) -> Result<(), <E as Encoder>::Error>
where E: Encoder,

source§

impl Hash for AddressFamilyNumbers

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl Ord for AddressFamilyNumbers

source§

fn cmp(&self, other: &AddressFamilyNumbers) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized + PartialOrd,

Restrict a value to a certain interval. Read more
source§

impl PartialEq for AddressFamilyNumbers

source§

fn eq(&self, other: &AddressFamilyNumbers) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd for AddressFamilyNumbers

source§

fn partial_cmp(&self, other: &AddressFamilyNumbers) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · source§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · source§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · source§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · source§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
source§

impl Eq for AddressFamilyNumbers

source§

impl StructuralPartialEq for AddressFamilyNumbers

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Conv for T

source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
source§

impl<T> FmtForward for T

source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

source§

const WITNESS: W = W::MAKE

A constant of the type witness
source§

impl<T> Identity for T
where T: ?Sized,

§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
source§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<T> Pipe for T
where T: ?Sized,

source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
source§

impl<T> Tap for T

source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
source§

impl<T> ToOpaque for T
where T: Encode,

source§

impl<T> TryConv for T

source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.