[−][src]Enum bgp_rs::SAFI
Represents an Subsequent Address Family Identifier. Currently only Unicast and Multicast are supported.
Variants
Unicast Forwarding [RFC4760]
Multicast Forwarding [RFC4760]
MPLS Labels [RFC3107]
Multicast VPN
VPLS [draft-ietf-l2vpn-evpn]
EVPN [draft-ietf-l2vpn-evpn]
BGP LS [RFC7752]
BGP LS VPN [RFC7752]
RTC [RFC4684]
MPLS VPN [RFC4364]
Flowspec Unicast
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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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);
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,