mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-08 22:38:01 -06:00
endpoint
This commit is contained in:
+5
-2
@@ -1,9 +1,14 @@
|
||||
//! Branch - A TreeElement with child elements for hierarchical routing.
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
||||
use serde_json::{json, Value};
|
||||
|
||||
use crate::tree::symbols;
|
||||
use crate::tree::TreeElement;
|
||||
|
||||
/// A branch node in the tree that can contain child elements.
|
||||
/// Supports path-based routing for multi-hop communication (pivoting).
|
||||
pub struct Branch {
|
||||
children: HashMap<String, Box<dyn TreeElement>>,
|
||||
branch_type: &'static str,
|
||||
@@ -101,5 +106,3 @@ impl TreeElement for Branch {
|
||||
self.handle_local_message(target, message)
|
||||
}
|
||||
}
|
||||
|
||||
use crate::tree::TreeElement;
|
||||
|
||||
Reference in New Issue
Block a user