Struct bgpkit_parser::BgpNotificationMessage
source · pub struct BgpNotificationMessage {
pub error_code: u8,
pub error_subcode: u8,
pub error_type: Option<BgpError>,
pub data: Vec<u8, Global>,
}
Fields§
§error_code: u8
§error_subcode: u8
§error_type: Option<BgpError>
§data: Vec<u8, Global>
Trait Implementations§
source§impl Clone for BgpNotificationMessage
impl Clone for BgpNotificationMessage
source§fn clone(&self) -> BgpNotificationMessage
fn clone(&self) -> BgpNotificationMessage
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 BgpNotificationMessage
impl Debug for BgpNotificationMessage
source§impl PartialEq<BgpNotificationMessage> for BgpNotificationMessage
impl PartialEq<BgpNotificationMessage> for BgpNotificationMessage
source§fn eq(&self, other: &BgpNotificationMessage) -> bool
fn eq(&self, other: &BgpNotificationMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BgpNotificationMessage
impl Serialize for BgpNotificationMessage
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for BgpNotificationMessage
impl StructuralEq for BgpNotificationMessage
impl StructuralPartialEq for BgpNotificationMessage
Auto Trait Implementations§
impl RefUnwindSafe for BgpNotificationMessage
impl Send for BgpNotificationMessage
impl Sync for BgpNotificationMessage
impl Unpin for BgpNotificationMessage
impl UnwindSafe for BgpNotificationMessage
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.