pub struct PeerIndexTable {
pub collector_bgp_id: Ipv4Addr,
pub view_name_length: u16,
pub view_name: String,
pub peer_count: u16,
pub peers_map: HashMap<u32, Peer>,
}
Expand description
peer index table.
An initial PEER_INDEX_TABLE MRT record provides the BGP ID of the
collector, an OPTIONAL view name, and a list of indexed peers.
Following the PEER_INDEX_TABLE MRT record, a series of MRT records is
used to encode RIB table entries. This series of MRT records uses
subtypes 2-6 and is separate from the PEER_INDEX_TABLE MRT record
itself and includes full MRT record headers. The RIB entry MRT
records MUST immediately follow the PEER_INDEX_TABLE MRT record.
Fields§
§collector_bgp_id: Ipv4Addr
§view_name_length: u16
§view_name: String
§peer_count: u16
§peers_map: HashMap<u32, Peer>
Trait Implementations§
Source§impl Clone for PeerIndexTable
impl Clone for PeerIndexTable
Source§fn clone(&self) -> PeerIndexTable
fn clone(&self) -> PeerIndexTable
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PeerIndexTable
impl Debug for PeerIndexTable
Source§impl PartialEq for PeerIndexTable
impl PartialEq for PeerIndexTable
Source§impl Serialize for PeerIndexTable
impl Serialize for PeerIndexTable
impl Eq for PeerIndexTable
impl StructuralPartialEq for PeerIndexTable
Auto Trait Implementations§
impl Freeze for PeerIndexTable
impl RefUnwindSafe for PeerIndexTable
impl Send for PeerIndexTable
impl Sync for PeerIndexTable
impl Unpin for PeerIndexTable
impl UnwindSafe for PeerIndexTable
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more