Struct bgpkit_parser::Bgp4MpMessage
source · [−]pub struct Bgp4MpMessage {
pub msg_type: Bgp4MpType,
pub peer_asn: Asn,
pub local_asn: Asn,
pub interface_index: u16,
pub afi: Afi,
pub peer_ip: IpAddr,
pub local_ip: IpAddr,
pub bgp_message: BgpMessage,
}Expand description
BGP4MP message.
Fields
msg_type: Bgp4MpTypepeer_asn: Asnlocal_asn: Asninterface_index: u16afi: Afipeer_ip: IpAddrlocal_ip: IpAddrbgp_message: BgpMessageTrait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Auto Trait Implementations
impl RefUnwindSafe for Bgp4MpMessage
impl Send for Bgp4MpMessage
impl Sync for Bgp4MpMessage
impl Unpin for Bgp4MpMessage
impl UnwindSafe for Bgp4MpMessage
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more