Struct bgpkit_parser::Peer
source · pub struct Peer {
pub peer_type: u8,
pub peer_bgp_id: Ipv4Addr,
pub peer_address: IpAddr,
pub peer_asn: Asn,
}
Expand description
Peer struct.
Fields§
§peer_type: u8
§peer_bgp_id: Ipv4Addr
§peer_address: IpAddr
§peer_asn: Asn
Trait Implementations§
source§impl PartialEq<Peer> for Peer
impl PartialEq<Peer> for Peer
source§impl Serialize for Peer
impl Serialize for Peer
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 Peer
impl StructuralEq for Peer
impl StructuralPartialEq for Peer
Auto Trait Implementations§
impl RefUnwindSafe for Peer
impl Send for Peer
impl Sync for Peer
impl Unpin for Peer
impl UnwindSafe for Peer
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.