Struct bgpkit_parser::models::Peer
source · pub struct Peer {
pub peer_type: PeerType,
pub peer_bgp_id: BgpIdentifier,
pub peer_address: IpAddr,
pub peer_asn: Asn,
}
Expand description
Peer struct.
Fields§
§peer_type: PeerType
§peer_bgp_id: BgpIdentifier
§peer_address: IpAddr
§peer_asn: Asn
Implementations§
Trait Implementations§
source§impl PartialEq for Peer
impl PartialEq for Peer
impl Copy for Peer
impl Eq 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<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.