Struct bgp_models::bgp::elem::BgpElem[][src]

pub struct BgpElem {
Show 15 fields pub timestamp: f64, pub elem_type: ElemType, pub peer_ip: IpAddr, pub peer_asn: Asn, pub prefix: NetworkPrefix, pub next_hop: Option<IpAddr>, pub as_path: Option<AsPath>, pub origin_asns: Option<Vec<Asn>>, pub origin: Option<Origin>, pub local_pref: Option<u32>, pub med: Option<u32>, pub communities: Option<Vec<MetaCommunity>>, pub atomic: Option<AtomicAggregate>, pub aggr_asn: Option<Asn>, pub aggr_ip: Option<IpAddr>,
}
Expand description

BgpElem represents per-prefix BGP element.

The information is for per announced/withdrawn prefix.

Note: it consumes more memory to construct BGP elements due to duplicate information shared between multiple elements of one MRT record.

Fields

timestamp: f64elem_type: ElemTypepeer_ip: IpAddrpeer_asn: Asnprefix: NetworkPrefixnext_hop: Option<IpAddr>as_path: Option<AsPath>origin_asns: Option<Vec<Asn>>origin: Option<Origin>local_pref: Option<u32>med: Option<u32>communities: Option<Vec<MetaCommunity>>atomic: Option<AtomicAggregate>aggr_asn: Option<Asn>aggr_ip: 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

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. 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.