pub struct Elementor { /* private fields */ }Implementations§
source§impl Elementor
impl Elementor
pub fn new() -> Elementor
sourcepub fn bgp_to_elems(
msg: BgpMessage,
timestamp: f64,
peer_ip: &IpAddr,
peer_asn: &Asn
) -> Vec<BgpElem> ⓘ
pub fn bgp_to_elems(
msg: BgpMessage,
timestamp: f64,
peer_ip: &IpAddr,
peer_asn: &Asn
) -> Vec<BgpElem> ⓘ
Convert a BgpMessage to a vector of BgpElems.
A BgpMessage may include Update, Open, Notification or KeepAlive messages,
and only Update message contains BgpElems.
sourcepub fn bgp_update_to_elems(
msg: BgpUpdateMessage,
timestamp: f64,
peer_ip: &IpAddr,
peer_asn: &Asn
) -> Vec<BgpElem> ⓘ
pub fn bgp_update_to_elems(
msg: BgpUpdateMessage,
timestamp: f64,
peer_ip: &IpAddr,
peer_asn: &Asn
) -> Vec<BgpElem> ⓘ
Convert a BgpUpdateMessage to a vector of BgpElems.