Enum bgpkit_parser::models::bgp4mp::BgpState
source · #[repr(u16)]pub enum BgpState {
Idle = 1,
Connect = 2,
Active = 3,
OpenSent = 4,
OpenConfirm = 5,
Established = 6,
}
Expand description
BGP states enum.
Variants§
Trait Implementations§
source§impl PartialEq for BgpState
impl PartialEq for BgpState
source§impl TryFrom<u16> for BgpState
impl TryFrom<u16> for BgpState
§type Error = TryFromPrimitiveError<BgpState>
type Error = TryFromPrimitiveError<BgpState>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for BgpState
impl TryFromPrimitive for BgpState
impl Copy for BgpState
impl Eq for BgpState
impl StructuralPartialEq for BgpState
Auto Trait Implementations§
impl Freeze for BgpState
impl RefUnwindSafe for BgpState
impl Send for BgpState
impl Sync for BgpState
impl Unpin for BgpState
impl UnwindSafe for BgpState
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.