ndn_config/
lib.rs

1//! # ndn-config -- Configuration and management protocol
2//!
3//! Parses TOML-based forwarder configuration and implements the NFD-compatible
4//! management protocol for runtime control of faces, routes, and strategies.
5//!
6//! ## Key types
7//!
8//! - [`ForwarderConfig`] -- top-level TOML configuration (faces, routes, CS, logging)
9//! - [`ControlParameters`] -- structured parameters for NFD management commands
10//! - [`ParsedCommand`] -- result of parsing an NFD command name
11
12#![allow(missing_docs)]
13
14pub mod config;
15pub mod control_parameters;
16pub mod control_response;
17pub mod error;
18pub mod mgmt;
19pub mod nfd_command;
20pub mod nfd_dataset;
21
22pub use config::{
23    CsConfig, DiscoveryTomlConfig, EngineConfig, FaceConfig, FaceKind, ForwarderConfig,
24    LoggingConfig, ManagementConfig, RouteConfig, SecurityConfig, TrustRuleConfig,
25};
26pub use control_parameters::ControlParameters;
27pub use control_response::ControlResponse;
28pub use error::ConfigError;
29pub use nfd_command::{ParsedCommand, command_name, dataset_name, parse_command_name};
30pub use nfd_dataset::{FaceStatus, FibEntry, NextHopRecord, RibEntry, Route, StrategyChoice};