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.
Auto Trait Implementations§
impl Freeze for Elementor
impl RefUnwindSafe for Elementor
impl Send for Elementor
impl Sync for Elementor
impl Unpin for Elementor
impl UnwindSafe for Elementor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more