pub trait NetworkGraphUpdate {
// Required method
fn record<'life0, 'async_trait, N, P>(
&'life0 self,
telemetry: Result<Telemetry<N, P>, TrafficGenerationError<P>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where N: MeasurableNeighbor + Clone + Send + Sync + 'static + 'async_trait,
P: MeasurablePath + Clone + Send + Sync + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
}Expand description
A trait specifying the graph update functionality
Required Methods§
Sourcefn record<'life0, 'async_trait, N, P>(
&'life0 self,
telemetry: Result<Telemetry<N, P>, TrafficGenerationError<P>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
N: MeasurableNeighbor + Clone + Send + Sync + 'static + 'async_trait,
P: MeasurablePath + Clone + Send + Sync + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
fn record<'life0, 'async_trait, N, P>(
&'life0 self,
telemetry: Result<Telemetry<N, P>, TrafficGenerationError<P>>,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
N: MeasurableNeighbor + Clone + Send + Sync + 'static + 'async_trait,
P: MeasurablePath + Clone + Send + Sync + 'static + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait,
Update the observation for the 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.