Enum bgpkit_parser::models::BgpMessageType
source · #[repr(u8)]pub enum BgpMessageType {
OPEN = 1,
UPDATE = 2,
NOTIFICATION = 3,
KEEPALIVE = 4,
}
Variants§
Trait Implementations§
source§impl Clone for BgpMessageType
impl Clone for BgpMessageType
source§fn clone(&self) -> BgpMessageType
fn clone(&self) -> BgpMessageType
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 BgpMessageType
impl Debug for BgpMessageType
source§impl From<BgpMessageType> for u8
impl From<BgpMessageType> for u8
source§fn from(enum_value: BgpMessageType) -> Self
fn from(enum_value: BgpMessageType) -> Self
Converts to this type from the input type.
source§impl Hash for BgpMessageType
impl Hash for BgpMessageType
source§impl PartialEq for BgpMessageType
impl PartialEq for BgpMessageType
source§impl TryFrom<u8> for BgpMessageType
impl TryFrom<u8> for BgpMessageType
§type Error = TryFromPrimitiveError<BgpMessageType>
type Error = TryFromPrimitiveError<BgpMessageType>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for BgpMessageType
impl TryFromPrimitive for BgpMessageType
type Primitive = u8
type Error = TryFromPrimitiveError<BgpMessageType>
const NAME: &'static str = "BgpMessageType"
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for BgpMessageType
impl StructuralPartialEq for BgpMessageType
Auto Trait Implementations§
impl Freeze for BgpMessageType
impl RefUnwindSafe for BgpMessageType
impl Send for BgpMessageType
impl Sync for BgpMessageType
impl Unpin for BgpMessageType
impl UnwindSafe for BgpMessageType
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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