[−][src]Enum bgp_rs::AFI
Represents an Address Family Identifier. Currently only IPv4 and IPv6 are supported. Currently only IPv4, IPv6, and L2VPN are supported.
Variants
Internet Protocol version 4 (32 bits)
Internet Protocol version 6 (128 bits)
L2VPN
BGPLS
Trait Implementations
impl Clone for AFI
[src]
impl Copy for AFI
[src]
impl Debug for AFI
[src]
impl Display for AFI
[src]
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
[src]
impl Hash for AFI
[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<AFI> for AFI
[src]
impl StructuralEq for AFI
[src]
impl StructuralPartialEq for AFI
[src]
impl TryFrom<u16> for AFI
[src]
Convert u16 to AFI
use std::convert::TryFrom; use bgp_rs::AFI; let val = 2u16; let afi = AFI::try_from(val).unwrap(); assert_eq!(afi, AFI::IPV6);
Auto Trait Implementations
impl RefUnwindSafe for AFI
impl Send for AFI
impl Sync for AFI
impl Unpin for AFI
impl UnwindSafe for AFI
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>,