mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
9895248bbf
Document the hook lifecycle, ingress rules, and longest-prefix routing behavior so the tree endpoint code is easier to follow. Keep the pass behavior-neutral while tightening local names and comments around non-obvious protocol paths.
21 lines
826 B
Rust
21 lines
826 B
Rust
//! Explicit tree declaration, routing, and a small endpoint runtime.
|
|
//!
|
|
//! This module keeps the protocol tree machinery split by concern:
|
|
//! - `routing` contains static path declarations and longest-prefix routing helpers.
|
|
//! - `hook` contains the pending/active hook lifecycle tables used by endpoint runtime code.
|
|
//! - `endpoint` ties those pieces together into the runtime-facing protocol endpoint API.
|
|
|
|
mod endpoint;
|
|
mod hook;
|
|
mod routing;
|
|
|
|
pub use endpoint::{
|
|
ChildRoute, ConnectionState, Endpoint, EndpointError, EndpointOutcome, Ingress, LeafSpec,
|
|
LocalEvent, ProtocolEndpoint,
|
|
};
|
|
pub use hook::{ActiveHook, HookConflict, HookKey, HookTable, PendingHook};
|
|
pub use routing::{
|
|
CompiledRoutes, DefaultRouteProvider, LeafNode, RouteDecision, RouteProvider, TreeNode,
|
|
is_prefix, route_destination,
|
|
};
|