Struct zettabgp::bmp::BgpSessionKey
source · pub struct BgpSessionKey {
pub peer_rd: BgpRD,
pub peer_ip: IpAddr,
}
Expand description
BGP session key
Fields§
§peer_rd: BgpRD
§peer_ip: IpAddr
Implementations§
source§impl BgpSessionKey
impl BgpSessionKey
pub fn new(peer_rd: BgpRD, peer_ip: IpAddr) -> BgpSessionKey
Trait Implementations§
source§impl Debug for BgpSessionKey
impl Debug for BgpSessionKey
source§impl From<&BmpMessagePeerHeader> for BgpSessionKey
impl From<&BmpMessagePeerHeader> for BgpSessionKey
source§fn from(peer: &BmpMessagePeerHeader) -> BgpSessionKey
fn from(peer: &BmpMessagePeerHeader) -> BgpSessionKey
Converts to this type from the input type.
source§impl Ord for BgpSessionKey
impl Ord for BgpSessionKey
source§fn cmp(&self, other: &BgpSessionKey) -> Ordering
fn cmp(&self, other: &BgpSessionKey) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BgpSessionKey
impl PartialEq for BgpSessionKey
source§fn eq(&self, other: &BgpSessionKey) -> bool
fn eq(&self, other: &BgpSessionKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BgpSessionKey
impl PartialOrd for BgpSessionKey
source§fn partial_cmp(&self, other: &BgpSessionKey) -> Option<Ordering>
fn partial_cmp(&self, other: &BgpSessionKey) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for BgpSessionKey
impl StructuralEq for BgpSessionKey
impl StructuralPartialEq for BgpSessionKey
Auto Trait Implementations§
impl RefUnwindSafe for BgpSessionKey
impl Send for BgpSessionKey
impl Sync for BgpSessionKey
impl Unpin for BgpSessionKey
impl UnwindSafe for BgpSessionKey
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