#[repr(u8)]pub enum EvpnRouteType {
EthernetAutoDiscovery = 1,
MacIpAdvertisement = 2,
InclusiveMulticastEthernetTag = 3,
EthernetSegment = 4,
IpPrefix = 5,
Unknown(u8),
}Expand description
EVPN route type - the first octet of every EVPN NLRI.
Types 1 to 5 are defined by RFC 7432 and RFC 9136; anything else is kept as
EvpnRouteType::Unknown so that new route types do not fail parsing.
Variants§
EthernetAutoDiscovery = 1
Ethernet Auto-Discovery route - RFC 7432 §7.1
MacIpAdvertisement = 2
MAC/IP Advertisement route - RFC 7432 §7.2
InclusiveMulticastEthernetTag = 3
Inclusive Multicast Ethernet Tag route - RFC 7432 §7.3
EthernetSegment = 4
Ethernet Segment route - RFC 7432 §7.4
IpPrefix = 5
IP Prefix route - RFC 9136 §3.1
Unknown(u8)
Trait Implementations§
Source§impl Clone for EvpnRouteType
impl Clone for EvpnRouteType
impl Copy for EvpnRouteType
Source§impl Debug for EvpnRouteType
impl Debug for EvpnRouteType
impl Eq for EvpnRouteType
Source§impl From<EvpnRouteType> for u8
impl From<EvpnRouteType> for u8
Source§fn from(enum_value: EvpnRouteType) -> Self
fn from(enum_value: EvpnRouteType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for EvpnRouteType
impl From<u8> for EvpnRouteType
Source§impl FromPrimitive for EvpnRouteType
impl FromPrimitive for EvpnRouteType
Source§impl Hash for EvpnRouteType
impl Hash for EvpnRouteType
Source§impl PartialEq for EvpnRouteType
impl PartialEq for EvpnRouteType
impl StructuralPartialEq for EvpnRouteType
Auto Trait Implementations§
impl Forget for EvpnRouteType
impl Freeze for EvpnRouteType
impl RefUnwindSafe for EvpnRouteType
impl Send for EvpnRouteType
impl Sync for EvpnRouteType
impl Unpin for EvpnRouteType
impl UnsafeUnpin for EvpnRouteType
impl UnwindSafe for EvpnRouteType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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