Enum bgpkit_parser::models::EntryType

source ·
#[repr(u16)]
pub enum EntryType {
Show 20 variants NULL = 0, START = 1, DIE = 2, I_AM_DEAD = 3, PEER_DOWN = 4, BGP = 5, RIP = 6, IDRP = 7, RIPNG = 8, BGP4PLUS = 9, BGP4PLUS_01 = 10, OSPFv2 = 11, TABLE_DUMP = 12, TABLE_DUMP_V2 = 13, BGP4MP = 16, BGP4MP_ET = 17, ISIS = 32, ISIS_ET = 33, OSPFv3 = 48, OSPFv3_ET = 49,
}
Expand description

MRT entry type.

EntryType indicates the type of the current MRT record. Type 0 to 10 are deprecated.

Excerpt from RFC6396 section 4:

The following MRT Types are currently defined for the MRT format.
The MRT Types that contain the "_ET" suffix in their names identify
those types that use an Extended Timestamp MRT Header.  The Subtype
and Message fields in these types remain as defined for the MRT Types
of the same name without the "_ET" suffix.

    11   OSPFv2
    12   TABLE_DUMP
    13   TABLE_DUMP_V2
    16   BGP4MP
    17   BGP4MP_ET
    32   ISIS
    33   ISIS_ET
    48   OSPFv3
    49   OSPFv3_ET

Variants§

§

NULL = 0

§

START = 1

§

DIE = 2

§

I_AM_DEAD = 3

§

PEER_DOWN = 4

§

BGP = 5

§

RIP = 6

§

IDRP = 7

§

RIPNG = 8

§

BGP4PLUS = 9

§

BGP4PLUS_01 = 10

§

OSPFv2 = 11

§

TABLE_DUMP = 12

§

TABLE_DUMP_V2 = 13

§

BGP4MP = 16

§

BGP4MP_ET = 17

§

ISIS = 32

§

ISIS_ET = 33

§

OSPFv3 = 48

§

OSPFv3_ET = 49

Trait Implementations§

source§

impl Clone for EntryType

source§

fn clone(&self) -> EntryType

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for EntryType

source§

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

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

impl From<EntryType> for u16

source§

fn from(enum_value: EntryType) -> Self

Converts to this type from the input type.
source§

impl Hash for EntryType

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 PartialEq for EntryType

source§

fn eq(&self, other: &EntryType) -> 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 TryFrom<u16> for EntryType

§

type Error = TryFromPrimitiveError<EntryType>

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

fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
source§

impl TryFromPrimitive for EntryType

§

type Primitive = u16

§

type Error = TryFromPrimitiveError<EntryType>

source§

const NAME: &'static str = "EntryType"

source§

fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>

source§

impl Copy for EntryType

source§

impl Eq for EntryType

source§

impl StructuralPartialEq for EntryType

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more