Enum bgpkit_parser::parser::bmp::messages::PeerDownReason
source · #[repr(u8)]pub enum PeerDownReason {
Reserved = 0,
LocalSystemClosedNotificationPduFollows = 1,
LocalSystemClosedFsmEvenFollows = 2,
RemoteSystemClosedNotificationPduFollows = 3,
RemoteSystemsClosedNoData = 4,
PeerDeConfigured = 5,
LocalSystemClosedTlvDataFollows = 6,
}
Variants§
Reserved = 0
LocalSystemClosedNotificationPduFollows = 1
LocalSystemClosedFsmEvenFollows = 2
RemoteSystemClosedNotificationPduFollows = 3
RemoteSystemsClosedNoData = 4
PeerDeConfigured = 5
LocalSystemClosedTlvDataFollows = 6
Trait Implementations§
source§impl Clone for PeerDownReason
impl Clone for PeerDownReason
source§fn clone(&self) -> PeerDownReason
fn clone(&self) -> PeerDownReason
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 PeerDownReason
impl Debug for PeerDownReason
source§impl From<PeerDownReason> for u8
impl From<PeerDownReason> for u8
source§fn from(enum_value: PeerDownReason) -> Self
fn from(enum_value: PeerDownReason) -> Self
Converts to this type from the input type.
source§impl PartialEq for PeerDownReason
impl PartialEq for PeerDownReason
source§fn eq(&self, other: &PeerDownReason) -> bool
fn eq(&self, other: &PeerDownReason) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u8> for PeerDownReason
impl TryFrom<u8> for PeerDownReason
§type Error = TryFromPrimitiveError<PeerDownReason>
type Error = TryFromPrimitiveError<PeerDownReason>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for PeerDownReason
impl TryFromPrimitive for PeerDownReason
type Primitive = u8
type Error = TryFromPrimitiveError<PeerDownReason>
const NAME: &'static str = "PeerDownReason"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for PeerDownReason
impl StructuralPartialEq for PeerDownReason
Auto Trait Implementations§
impl Freeze for PeerDownReason
impl RefUnwindSafe for PeerDownReason
impl Send for PeerDownReason
impl Sync for PeerDownReason
impl Unpin for PeerDownReason
impl UnwindSafe for PeerDownReason
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