Struct bgpkit_parser::elem::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 f64elem_type: &'a ElemTypepeer_ip: &'a IpAddrpeer_asn: &'a Asnprefix: &'a NetworkPrefixnext_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
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<'a> RefUnwindSafe for BgpElemRef<'a>
impl<'a> Send for BgpElemRef<'a>
impl<'a> Sync for BgpElemRef<'a>
impl<'a> Unpin for BgpElemRef<'a>
impl<'a> UnwindSafe for BgpElemRef<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
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