pub struct VpnRouteKey {
pub route_distinguisher: RouteDistinguisher,
pub prefix: VpnPrefix,
}Expand description
Route-key identity for one VPNv4/VPNv6 NLRI.
The label stack is intentionally excluded: labels are route data carried by the path, while the VPN route key is RD plus IP prefix.
Fields§
§route_distinguisher: RouteDistinguisherRoute Distinguisher.
prefix: VpnPrefixRD-scoped VPN IP prefix.
Trait Implementations§
Source§impl Clone for VpnRouteKey
impl Clone for VpnRouteKey
Source§fn clone(&self) -> VpnRouteKey
fn clone(&self) -> VpnRouteKey
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 VpnRouteKey
Source§impl Debug for VpnRouteKey
impl Debug for VpnRouteKey
impl Eq for VpnRouteKey
Source§impl Hash for VpnRouteKey
impl Hash for VpnRouteKey
Source§impl Ord for VpnRouteKey
impl Ord for VpnRouteKey
Source§fn cmp(&self, other: &VpnRouteKey) -> Ordering
fn cmp(&self, other: &VpnRouteKey) -> 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 VpnRouteKey
impl PartialEq for VpnRouteKey
Source§fn eq(&self, other: &VpnRouteKey) -> bool
fn eq(&self, other: &VpnRouteKey) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for VpnRouteKey
impl PartialOrd for VpnRouteKey
impl StructuralPartialEq for VpnRouteKey
Auto Trait Implementations§
impl Freeze for VpnRouteKey
impl RefUnwindSafe for VpnRouteKey
impl Send for VpnRouteKey
impl Sync for VpnRouteKey
impl Unpin for VpnRouteKey
impl UnsafeUnpin for VpnRouteKey
impl UnwindSafe for VpnRouteKey
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