Struct bgpkit_parser::BgpElemRef
source · pub struct BgpElemRef<'a> {Show 15 fields
pub timestamp: &'a f64,
pub elem_type: &'a ElemType,
pub peer_ip: &'a IpAddr,
pub peer_asn: &'a Asn,
pub prefix: &'a NetworkPrefix,
pub next_hop: &'a Option<IpAddr>,
pub as_path: &'a Option<AsPath>,
pub origin_asns: &'a Option<Vec<Asn, Global>>,
pub origin: &'a Option<Origin>,
pub local_pref: &'a Option<u32>,
pub med: &'a Option<u32>,
pub communities: &'a Option<Vec<MetaCommunity, Global>>,
pub atomic: &'a Option<AtomicAggregate>,
pub aggr_asn: &'a Option<Asn>,
pub aggr_ip: &'a Option<IpAddr>,
}
Expand description
Reference version of the BgpElem struct.
Fields§
§timestamp: &'a f64
§elem_type: &'a ElemType
§peer_ip: &'a IpAddr
§peer_asn: &'a Asn
§prefix: &'a NetworkPrefix
§next_hop: &'a Option<IpAddr>
§as_path: &'a Option<AsPath>
§origin_asns: &'a Option<Vec<Asn, Global>>
§origin: &'a Option<Origin>
§local_pref: &'a Option<u32>
§med: &'a Option<u32>
§communities: &'a Option<Vec<MetaCommunity, Global>>
§atomic: &'a Option<AtomicAggregate>
§aggr_asn: &'a Option<Asn>
§aggr_ip: &'a Option<IpAddr>
Trait Implementations§
source§impl<'a> Clone for BgpElemRef<'a>
impl<'a> Clone for BgpElemRef<'a>
source§fn clone(&self) -> BgpElemRef<'a>
fn clone(&self) -> BgpElemRef<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for BgpElemRef<'a>
impl<'a> Debug for BgpElemRef<'a>
source§impl<'a> Serialize for BgpElemRef<'a>
impl<'a> Serialize for BgpElemRef<'a>
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