Skip to main content

NetworkGraphUpdate

Trait NetworkGraphUpdate 

pub trait NetworkGraphUpdate {
    // Required methods
    fn record_edge<N, P>(&self, update: MeasurableEdge<N, P>)
       where N: MeasurablePeer + Clone + Send + Sync + 'static,
             P: MeasurablePath + Clone + Send + Sync + 'static;
    fn record_node<N>(&self, update: N)
       where N: MeasurableNode + Clone + Send + Sync + 'static;
}
Expand description

A trait for recording observed measurment updates to graph edges and nodes.

Required Methods§

fn record_edge<N, P>(&self, update: MeasurableEdge<N, P>)
where N: MeasurablePeer + Clone + Send + Sync + 'static, P: MeasurablePath + Clone + Send + Sync + 'static,

Records an edge measurement derived from network telemetry.

fn record_node<N>(&self, update: N)
where N: MeasurableNode + Clone + Send + Sync + 'static,

Records a node observation derived from network telemetry.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

§

impl<'a, T> NetworkGraphUpdate for &'a T
where T: 'a + NetworkGraphUpdate + ?Sized,

§

fn record_edge<N, P>(&self, update: MeasurableEdge<N, P>)
where N: MeasurablePeer + Clone + Send + Sync + 'static, P: MeasurablePath + Clone + Send + Sync + 'static,

§

fn record_node<N>(&self, update: N)
where N: MeasurableNode + Clone + Send + Sync + 'static,

§

impl<T> NetworkGraphUpdate for Box<T>

§

fn record_edge<N, P>(&self, update: MeasurableEdge<N, P>)
where N: MeasurablePeer + Clone + Send + Sync + 'static, P: MeasurablePath + Clone + Send + Sync + 'static,

§

fn record_node<N>(&self, update: N)
where N: MeasurableNode + Clone + Send + Sync + 'static,

§

impl<T> NetworkGraphUpdate for Arc<T>

§

fn record_edge<N, P>(&self, update: MeasurableEdge<N, P>)
where N: MeasurablePeer + Clone + Send + Sync + 'static, P: MeasurablePath + Clone + Send + Sync + 'static,

§

fn record_node<N>(&self, update: N)
where N: MeasurableNode + Clone + Send + Sync + 'static,

Implementors§