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