#[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 duplicate 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§impl TryFrom<u8> for BmpMsgType
impl TryFrom<u8> for BmpMsgType
Source§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
const NAME: &'static str = "BmpMsgType"
type Primitive = u8
type Error = TryFromPrimitiveError<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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more