#[repr(u16)]pub enum AFI {
IPV4 = 1,
IPV6 = 2,
L2VPN = 25,
BGPLS = 16_388,
}Expand description
Represents an Address Family Identifier. Currently only IPv4 and IPv6 are supported. Currently only IPv4, IPv6, and L2VPN are supported.
Variants§
IPV4 = 1
Internet Protocol version 4 (32 bits)
IPV6 = 2
Internet Protocol version 6 (128 bits)
L2VPN = 25
L2VPN
BGPLS = 16_388
BGPLS
Trait Implementations§
impl Copy for AFI
Source§impl Display for AFI
Display AFI in a human-friendly format
impl Display for AFI
Display AFI in a human-friendly format
use bgp_rs::AFI;
let afi = AFI::IPV6;
assert_eq!(&afi.to_string(), "IPv6");impl Eq for AFI
impl StructuralPartialEq for AFI
Auto Trait Implementations§
impl Freeze for AFI
impl RefUnwindSafe for AFI
impl Send for AFI
impl Sync for AFI
impl Unpin for AFI
impl UnsafeUnpin for AFI
impl UnwindSafe for AFI
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