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: u8peer_bgp_id: Ipv4Addrpeer_address: IpAddrpeer_asn: AsnTrait Implementations
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 Peer
impl UnwindSafe for Peer
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