Struct bgpkit_parser::Bgp4MpStateChange
source · [−]pub struct Bgp4MpStateChange {
pub msg_type: Bgp4MpType,
pub peer_asn: Asn,
pub local_asn: Asn,
pub interface_index: u16,
pub address_family: Afi,
pub peer_addr: IpAddr,
pub local_addr: IpAddr,
pub old_state: BgpState,
pub new_state: BgpState,
}Expand description
BGP4MP state change message.
Fields
msg_type: Bgp4MpTypepeer_asn: Asnlocal_asn: Asninterface_index: u16address_family: Afipeer_addr: IpAddrlocal_addr: IpAddrold_state: BgpStatenew_state: BgpStateTrait 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 Bgp4MpStateChange
impl Send for Bgp4MpStateChange
impl Sync for Bgp4MpStateChange
impl Unpin for Bgp4MpStateChange
impl UnwindSafe for Bgp4MpStateChange
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