Enum bgpkit_parser::parser::bmp::messages::TerminationTlvType
source · #[repr(u16)]pub enum TerminationTlvType {
String = 0,
Reason = 1,
}
Expand description
Type-Length-Value Type
For more, see: https://datatracker.ietf.org/doc/html/rfc1213
Variants§
Trait Implementations§
source§impl Clone for TerminationTlvType
impl Clone for TerminationTlvType
source§fn clone(&self) -> TerminationTlvType
fn clone(&self) -> TerminationTlvType
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 TerminationTlvType
impl Debug for TerminationTlvType
source§impl From<TerminationTlvType> for u16
impl From<TerminationTlvType> for u16
source§fn from(enum_value: TerminationTlvType) -> Self
fn from(enum_value: TerminationTlvType) -> Self
Converts to this type from the input type.
source§impl PartialEq for TerminationTlvType
impl PartialEq for TerminationTlvType
source§fn eq(&self, other: &TerminationTlvType) -> bool
fn eq(&self, other: &TerminationTlvType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<u16> for TerminationTlvType
impl TryFrom<u16> for TerminationTlvType
§type Error = TryFromPrimitiveError<TerminationTlvType>
type Error = TryFromPrimitiveError<TerminationTlvType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for TerminationTlvType
impl TryFromPrimitive for TerminationTlvType
type Primitive = u16
type Error = TryFromPrimitiveError<TerminationTlvType>
const NAME: &'static str = "TerminationTlvType"
fn try_from_primitive( number: Self::Primitive ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for TerminationTlvType
impl StructuralPartialEq for TerminationTlvType
Auto Trait Implementations§
impl Freeze for TerminationTlvType
impl RefUnwindSafe for TerminationTlvType
impl Send for TerminationTlvType
impl Sync for TerminationTlvType
impl Unpin for TerminationTlvType
impl UnwindSafe for TerminationTlvType
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