pub enum NLRIEncoding {
IP(Prefix),
IP_WITH_PATH_ID((Prefix, u32)),
IP_MPLS((Prefix, u32)),
IP_MPLS_WITH_PATH_ID((Prefix, u32, u32)),
IP_VPN_MPLS((u64, Prefix, u32)),
L2VPN((u64, u16, u16, u16, u32)),
}
Expand description
Represents NLRIEncodings present in the NRLI section of an UPDATE message.
Variants§
IP(Prefix)
Encodings that specify only an IP present, either IPv4 or IPv6
IP_WITH_PATH_ID((Prefix, u32))
Encodings that specify a Path Identifier as specified in RFC7911. (Prefix, Path ID)
IP_MPLS((Prefix, u32))
Encodings with a labeled nexthop as specified in RFC8277. (Prefix, MPLS Label)
IP_MPLS_WITH_PATH_ID((Prefix, u32, u32))
Encodings with a labeled nexthop as specified in RFC8277. (Prefix, MPLS Label, Path ID)
IP_VPN_MPLS((u64, Prefix, u32))
Encodings for VPNs with a labeled nexthop as specified in RFC8277. (Prefix, MPLS Label)
L2VPN((u64, u16, u16, u16, u32))
Encodings that specify a VPLS endpoint as specified in RFC4761. (RD, VE ID, Label Block Offset, Label Block Size, Label Base)
Implementations§
Source§impl NLRIEncoding
impl NLRIEncoding
Trait Implementations§
Source§impl Clone for NLRIEncoding
impl Clone for NLRIEncoding
Source§fn clone(&self) -> NLRIEncoding
fn clone(&self) -> NLRIEncoding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NLRIEncoding
impl Debug for NLRIEncoding
Source§impl PartialEq for NLRIEncoding
impl PartialEq for NLRIEncoding
impl Eq for NLRIEncoding
impl StructuralPartialEq for NLRIEncoding
Auto Trait Implementations§
impl Freeze for NLRIEncoding
impl RefUnwindSafe for NLRIEncoding
impl Send for NLRIEncoding
impl Sync for NLRIEncoding
impl Unpin for NLRIEncoding
impl UnwindSafe for NLRIEncoding
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