Skip to main content

HoprGraphReadApi

Trait HoprGraphReadApi 

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

Read-only graph API for external consumers.

This trait is automatically implemented for types that implement both NetworkGraphView and NetworkGraphTraverse 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> HoprGraphReadApi for T
where T: NetworkGraphView<NodeId = N> + NetworkGraphTraverse<NodeId = N>, N: Send,

§

type HoprNodeId = N