pub struct EvpnIpPrefixRoute {
pub rd: RouteDistinguisher,
pub esi: EthernetSegmentIdentifier,
pub ethernet_tag: EthernetTagId,
pub prefix: EvpnIpPrefixValue,
pub gateway: IpAddr,
pub label: MplsLabel,
}Expand description
Type 5: IP Prefix route (RFC 9136).
Fields§
§rd: RouteDistinguisherRoute Distinguisher.
esi: EthernetSegmentIdentifierEthernet Segment Identifier (may be ZERO).
ethernet_tag: EthernetTagIdEthernet Tag (often 0 for Type 5).
prefix: EvpnIpPrefixValueIP prefix being advertised (IPv4 or IPv6).
gateway: IpAddrGateway IP address. Same family as prefix. May be 0.0.0.0 / ::.
label: MplsLabelMPLS label / L3 VNI.
Trait Implementations§
Source§impl Clone for EvpnIpPrefixRoute
impl Clone for EvpnIpPrefixRoute
Source§fn clone(&self) -> EvpnIpPrefixRoute
fn clone(&self) -> EvpnIpPrefixRoute
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EvpnIpPrefixRoute
Source§impl Debug for EvpnIpPrefixRoute
impl Debug for EvpnIpPrefixRoute
impl Eq for EvpnIpPrefixRoute
Source§impl Hash for EvpnIpPrefixRoute
impl Hash for EvpnIpPrefixRoute
Source§impl Ord for EvpnIpPrefixRoute
impl Ord for EvpnIpPrefixRoute
Source§fn cmp(&self, other: &EvpnIpPrefixRoute) -> Ordering
fn cmp(&self, other: &EvpnIpPrefixRoute) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EvpnIpPrefixRoute
impl PartialEq for EvpnIpPrefixRoute
Source§fn eq(&self, other: &EvpnIpPrefixRoute) -> bool
fn eq(&self, other: &EvpnIpPrefixRoute) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EvpnIpPrefixRoute
impl PartialOrd for EvpnIpPrefixRoute
impl StructuralPartialEq for EvpnIpPrefixRoute
Auto Trait Implementations§
impl Freeze for EvpnIpPrefixRoute
impl RefUnwindSafe for EvpnIpPrefixRoute
impl Send for EvpnIpPrefixRoute
impl Sync for EvpnIpPrefixRoute
impl Unpin for EvpnIpPrefixRoute
impl UnsafeUnpin for EvpnIpPrefixRoute
impl UnwindSafe for EvpnIpPrefixRoute
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