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 PartialEq for EntryType
impl PartialEq for EntryType
source§impl TryFrom<u16> for EntryType
impl TryFrom<u16> for EntryType
§type Error = TryFromPrimitiveError<EntryType>
type Error = TryFromPrimitiveError<EntryType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for EntryType
impl TryFromPrimitive for EntryType
impl Copy for EntryType
impl Eq for EntryType
impl StructuralPartialEq for EntryType
Auto Trait Implementations§
impl Freeze for EntryType
impl RefUnwindSafe for EntryType
impl Send for EntryType
impl Sync for EntryType
impl Unpin for EntryType
impl UnwindSafe for EntryType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.