Enum bgpkit_parser::parser::bmp::messages::BmpPeerType
source · #[repr(u8)]pub enum BmpPeerType {
Global = 0,
RD = 1,
Local = 2,
LocalRib = 3,
}
Expand description
Peer type
- RFC7854: https://datatracker.ietf.org/doc/html/rfc7854#section-4.2
- RFC9069: https://datatracker.ietf.org/doc/html/rfc9069
Variants§
Trait Implementations§
source§impl Clone for BmpPeerType
impl Clone for BmpPeerType
source§fn clone(&self) -> BmpPeerType
fn clone(&self) -> BmpPeerType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for BmpPeerType
impl Debug for BmpPeerType
source§impl From<BmpPeerType> for u8
impl From<BmpPeerType> for u8
source§fn from(enum_value: BmpPeerType) -> Self
fn from(enum_value: BmpPeerType) -> Self
Converts to this type from the input type.
source§impl Hash for BmpPeerType
impl Hash for BmpPeerType
source§impl PartialEq for BmpPeerType
impl PartialEq for BmpPeerType
source§fn eq(&self, other: &BmpPeerType) -> bool
fn eq(&self, other: &BmpPeerType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for BmpPeerType
impl TryFrom<u8> for BmpPeerType
§type Error = TryFromPrimitiveError<BmpPeerType>
type Error = TryFromPrimitiveError<BmpPeerType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for BmpPeerType
impl TryFromPrimitive for BmpPeerType
type Primitive = u8
type Error = TryFromPrimitiveError<BmpPeerType>
const NAME: &'static str = "BmpPeerType"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BmpPeerType
impl Eq for BmpPeerType
impl StructuralPartialEq for BmpPeerType
Auto Trait Implementations§
impl Freeze for BmpPeerType
impl RefUnwindSafe for BmpPeerType
impl Send for BmpPeerType
impl Sync for BmpPeerType
impl Unpin for BmpPeerType
impl UnwindSafe for BmpPeerType
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.