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