[][src]Enum bgp_rs::SAFI

#[repr(u8)]pub enum SAFI {
    Unicast,
    Multicast,
    Mpls,
    MulticastVpn,
    Vpls,
    Evpn,
    BgpLs,
    BgpLsVpn,
    Rtc,
    MplsVpn,
    Flowspec,
    FlowspecVPN,
}

Represents an Subsequent Address Family Identifier. Currently only Unicast and Multicast are supported.

Variants

Unicast

Unicast Forwarding [RFC4760]

Multicast

Multicast Forwarding [RFC4760]

Mpls

MPLS Labels [RFC3107]

MulticastVpn

Multicast VPN

Vpls

VPLS [draft-ietf-l2vpn-evpn]

Evpn

EVPN [draft-ietf-l2vpn-evpn]

BgpLs

BGP LS [RFC7752]

BgpLsVpn

BGP LS VPN [RFC7752]

Rtc

RTC [RFC4684]

MplsVpn

MPLS VPN [RFC4364]

Flowspec

Flowspec Unicast

FlowspecVPN

Flowspec Unicast

Trait Implementations

impl Clone for SAFI[src]

impl Copy for SAFI[src]

impl Debug for SAFI[src]

impl Display for SAFI[src]

Display SAFI in a human-friendly format

use bgp_rs::SAFI;
let safi = SAFI::Flowspec;
assert_eq!(&safi.to_string(), "Flowspec");

impl Eq for SAFI[src]

impl Hash for SAFI[src]

impl PartialEq<SAFI> for SAFI[src]

impl StructuralEq for SAFI[src]

impl StructuralPartialEq for SAFI[src]

impl TryFrom<u8> for SAFI[src]

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);

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for SAFI

impl Send for SAFI

impl Sync for SAFI

impl Unpin for SAFI

impl UnwindSafe for SAFI

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.