Skip to main content

HoprGraphApi

Trait HoprGraphApi 

pub trait HoprGraphApi:
    NetworkGraphView<NodeId = Self::HoprNodeId>
    + NetworkGraphUpdate
    + NetworkGraphWrite<NodeId = Self::HoprNodeId>
    + NetworkGraphTraverse<NodeId = Self::HoprNodeId> {
    type HoprNodeId: Send;
}
Expand description

Complete set of HOPR graph operation APIs.

This trait is automatically implemented for types that implement all the individual graph API traits with the same node id.

Required Associated Types§

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.

Implementors§

§

impl<T, N> HoprGraphApi for T
where T: NetworkGraphUpdate + NetworkGraphWrite<NodeId = N> + NetworkGraphTraverse<NodeId = N> + NetworkGraphView<NodeId = N>, N: Send,

§

type HoprNodeId = N