Enum bgpkit_parser::models::BgpMessage
source · pub enum BgpMessage {
Open(BgpOpenMessage),
Update(BgpUpdateMessage),
Notification(BgpNotificationMessage),
KeepAlive,
}
Variants§
Implementations§
source§impl BgpMessage
impl BgpMessage
pub const fn msg_type(&self) -> BgpMessageType
Trait Implementations§
source§impl Clone for BgpMessage
impl Clone for BgpMessage
source§fn clone(&self) -> BgpMessage
fn clone(&self) -> BgpMessage
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 BgpMessage
impl Debug for BgpMessage
source§impl From<BgpUpdateMessage> for BgpMessage
impl From<BgpUpdateMessage> for BgpMessage
source§fn from(value: BgpUpdateMessage) -> Self
fn from(value: BgpUpdateMessage) -> Self
Converts to this type from the input type.
source§impl PartialEq for BgpMessage
impl PartialEq for BgpMessage
source§fn eq(&self, other: &BgpMessage) -> bool
fn eq(&self, other: &BgpMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BgpMessage
impl StructuralPartialEq for BgpMessage
Auto Trait Implementations§
impl Freeze for BgpMessage
impl RefUnwindSafe for BgpMessage
impl Send for BgpMessage
impl Sync for BgpMessage
impl Unpin for BgpMessage
impl UnwindSafe for BgpMessage
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.