Enum bgpkit_parser::models::Afi
source · #[repr(u16)]pub enum Afi {
Ipv4 = 1,
Ipv6 = 2,
}
Expand description
AFI – Address Family Identifier
https://www.iana.org/assignments/address-family-numbers/address-family-numbers.xhtml
Variants§
Trait Implementations§
source§impl TryFrom<u16> for Afi
impl TryFrom<u16> for Afi
§type Error = TryFromPrimitiveError<Afi>
type Error = TryFromPrimitiveError<Afi>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Afi
impl TryFromPrimitive for Afi
impl Copy for Afi
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 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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.