#[repr(u8)]pub enum SAFI {
Unicast = 1,
Multicast = 2,
Mpls = 4,
MulticastVpn = 5,
Vpls = 65,
Evpn = 70,
BgpLs = 71,
BgpLsVpn = 72,
Rtc = 132,
MplsVpn = 128,
Flowspec = 133,
FlowspecVPN = 134,
}
Expand description
Represents an Subsequent Address Family Identifier. Currently only Unicast and Multicast are supported.
Variants§
Unicast = 1
Unicast Forwarding [RFC4760]
Multicast = 2
Multicast Forwarding [RFC4760]
Mpls = 4
MPLS Labels [RFC3107]
MulticastVpn = 5
Multicast VPN
Vpls = 65
VPLS [draft-ietf-l2vpn-evpn]
Evpn = 70
EVPN [draft-ietf-l2vpn-evpn]
BgpLs = 71
BGP LS [RFC7752]
BgpLsVpn = 72
BGP LS VPN [RFC7752]
Rtc = 132
RTC [RFC4684]
MplsVpn = 128
MPLS VPN [RFC4364]
Flowspec = 133
Flowspec Unicast
FlowspecVPN = 134
Flowspec Unicast
Trait Implementations§
Source§impl Display for SAFI
Display SAFI in a human-friendly format
impl Display for SAFI
Display SAFI in a human-friendly format
use bgp_rs::SAFI;
let safi = SAFI::Flowspec;
assert_eq!(&safi.to_string(), "Flowspec");
Source§impl TryFrom<u8> for SAFI
Convert u8 to SAFI
impl TryFrom<u8> for SAFI
Convert u8 to SAFI
use std::convert::TryFrom;
use bgp_rs::SAFI;
let val = 1u8;
let safi = SAFI::try_from(val).unwrap();
assert_eq!(safi, SAFI::Unicast);
impl Copy for SAFI
impl Eq for SAFI
impl StructuralPartialEq for SAFI
Auto Trait Implementations§
impl Freeze for SAFI
impl RefUnwindSafe for SAFI
impl Send for SAFI
impl Sync for SAFI
impl Unpin for SAFI
impl UnwindSafe for SAFI
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