#[repr(u8)]pub enum AttrType {
Show 33 variants
RESERVED = 0,
ORIGIN = 1,
AS_PATH = 2,
NEXT_HOP = 3,
MULTI_EXIT_DISCRIMINATOR = 4,
LOCAL_PREFERENCE = 5,
ATOMIC_AGGREGATE = 6,
AGGREGATOR = 7,
COMMUNITIES = 8,
ORIGINATOR_ID = 9,
CLUSTER_LIST = 10,
CLUSTER_ID = 13,
MP_REACHABLE_NLRI = 14,
MP_UNREACHABLE_NLRI = 15,
EXTENDED_COMMUNITIES = 16,
AS4_PATH = 17,
AS4_AGGREGATOR = 18,
PMSI_TUNNEL = 22,
TUNNEL_ENCAPSULATION = 23,
TRAFFIC_ENGINEERING = 24,
IPV6_ADDRESS_SPECIFIC_EXTENDED_COMMUNITIES = 25,
AIGP = 26,
PE_DISTINGUISHER_LABELS = 27,
BGP_LS_ATTRIBUTE = 29,
LARGE_COMMUNITIES = 32,
BGPSEC_PATH = 33,
ONLY_TO_CUSTOMER = 35,
SFP_ATTRIBUTE = 37,
BFD_DISCRIMINATOR = 38,
BGP_PREFIX_SID = 40,
ATTR_SET = 128,
DEVELOPMENT = 255,
Unknown(u8),
}
Expand description
Attribute types.
All attributes currently defined and not Unassigned or Deprecated are included here. To see the full list, check out IANA at: https://www.iana.org/assignments/bgp-parameters/bgp-parameters.xhtml#bgp-parameters-2
Variants§
RESERVED = 0
ORIGIN = 1
AS_PATH = 2
NEXT_HOP = 3
MULTI_EXIT_DISCRIMINATOR = 4
LOCAL_PREFERENCE = 5
ATOMIC_AGGREGATE = 6
AGGREGATOR = 7
COMMUNITIES = 8
ORIGINATOR_ID = 9
CLUSTER_LIST = 10
CLUSTER_ID = 13
MP_REACHABLE_NLRI = 14
MP_UNREACHABLE_NLRI = 15
EXTENDED_COMMUNITIES = 16
AS4_PATH = 17
AS4_AGGREGATOR = 18
PMSI_TUNNEL = 22
TUNNEL_ENCAPSULATION = 23
TRAFFIC_ENGINEERING = 24
IPV6_ADDRESS_SPECIFIC_EXTENDED_COMMUNITIES = 25
AIGP = 26
PE_DISTINGUISHER_LABELS = 27
BGP_LS_ATTRIBUTE = 29
LARGE_COMMUNITIES = 32
BGPSEC_PATH = 33
ONLY_TO_CUSTOMER = 35
SFP_ATTRIBUTE = 37
BFD_DISCRIMINATOR = 38
BGP_PREFIX_SID = 40
ATTR_SET = 128
DEVELOPMENT = 255
Unknown(u8)
Catch all for any unknown attribute types
Trait Implementations§
Source§impl FromPrimitive for AttrType
impl FromPrimitive for AttrType
Source§impl Ord for AttrType
impl Ord for AttrType
Source§impl PartialOrd for AttrType
impl PartialOrd for AttrType
impl Copy for AttrType
impl Eq for AttrType
impl StructuralPartialEq for AttrType
Auto Trait Implementations§
impl Freeze for AttrType
impl RefUnwindSafe for AttrType
impl Send for AttrType
impl Sync for AttrType
impl Unpin for AttrType
impl UnwindSafe for AttrType
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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