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§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
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