Skip to main content

Crate hopr_transport_path

Crate hopr_transport_path 

Source
Expand description

Graph-based path planning for the HOPR transport layer.

This crate provides:

  • traits::PathSelector: Trait for selecting multi-hop paths through the network.
  • PathPlanner: Resolves DestinationRouting to ResolvedTransportRouting, delegating path discovery to any traits::PathSelector implementation and maintaining a moka-backed cache of fully-validated ValidatedPath objects keyed by (source, destination, options).
  • PathPlannerConfig: Configuration for the planner’s cache and background refresh.

Re-exports§

pub use errors::PathPlannerError;
pub use errors::Result;
pub use planner::PathPlanner;
pub use planner::PathPlannerConfig;
pub use selector::HoprGraphPathSelector;
pub use traits::BackgroundPathCacheRefreshable;
pub use traits::PathSelector;
pub use traits::PathWithCost;

Modules§

errors
planner
selector
traits