Enum bgpkit_parser::parser::bmp::messages::BmpMsgType
source · #[repr(u8)]pub enum BmpMsgType {
RouteMonitoring = 0,
StatisticsReport = 1,
PeerDownNotification = 2,
PeerUpNotification = 3,
InitiationMessage = 4,
TerminationMessage = 5,
RouteMirroringMessage = 6,
}
Expand description
BMP message type enum.
o Message Type (1 byte): This identifies the type of the BMP
message. A BMP implementation MUST ignore unrecognized message
types upon receipt.
* Type = 0: Route Monitoring
* Type = 1: Statistics Report
* Type = 2: Peer Down Notification
* Type = 3: Peer Up Notification
* Type = 4: Initiation Message
* Type = 5: Termination Message
* Type = 6: Route Mirroring Message
Variants§
RouteMonitoring = 0
StatisticsReport = 1
PeerDownNotification = 2
PeerUpNotification = 3
InitiationMessage = 4
TerminationMessage = 5
RouteMirroringMessage = 6
Trait Implementations§
source§impl Clone for BmpMsgType
impl Clone for BmpMsgType
source§fn clone(&self) -> BmpMsgType
fn clone(&self) -> BmpMsgType
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 BmpMsgType
impl Debug for BmpMsgType
source§impl From<BmpMsgType> for u8
impl From<BmpMsgType> for u8
source§fn from(enum_value: BmpMsgType) -> Self
fn from(enum_value: BmpMsgType) -> Self
Converts to this type from the input type.
source§impl Hash for BmpMsgType
impl Hash for BmpMsgType
source§impl PartialEq for BmpMsgType
impl PartialEq for BmpMsgType
source§fn eq(&self, other: &BmpMsgType) -> bool
fn eq(&self, other: &BmpMsgType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for BmpMsgType
impl TryFrom<u8> for BmpMsgType
§type Error = TryFromPrimitiveError<BmpMsgType>
type Error = TryFromPrimitiveError<BmpMsgType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for BmpMsgType
impl TryFromPrimitive for BmpMsgType
type Primitive = u8
type Error = TryFromPrimitiveError<BmpMsgType>
const NAME: &'static str = "BmpMsgType"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BmpMsgType
impl Eq for BmpMsgType
impl StructuralPartialEq for BmpMsgType
Auto Trait Implementations§
impl Freeze for BmpMsgType
impl RefUnwindSafe for BmpMsgType
impl Send for BmpMsgType
impl Sync for BmpMsgType
impl Unpin for BmpMsgType
impl UnwindSafe for BmpMsgType
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.