Enum bgpkit_parser::models::role::BgpRole
source · #[repr(u8)]pub enum BgpRole {
Provider = 0,
RouteServer = 1,
RouteServerClient = 2,
Customer = 3,
Peer = 4,
}
Expand description
BGP Role
Defined in RFC9234.
Variants§
Trait Implementations§
source§impl PartialEq for BgpRole
impl PartialEq for BgpRole
source§impl TryFrom<u8> for BgpRole
impl TryFrom<u8> for BgpRole
§type Error = TryFromPrimitiveError<BgpRole>
type Error = TryFromPrimitiveError<BgpRole>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for BgpRole
impl TryFromPrimitive for BgpRole
impl Copy for BgpRole
impl Eq for BgpRole
impl StructuralPartialEq for BgpRole
Auto Trait Implementations§
impl Freeze for BgpRole
impl RefUnwindSafe for BgpRole
impl Send for BgpRole
impl Sync for BgpRole
impl Unpin for BgpRole
impl UnwindSafe for BgpRole
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.