Reduce leaf hook data actions

This commit is contained in:
Michael Mikovsky
2026-05-09 13:25:16 -06:00
parent 97f3e305bb
commit a68e86ef6d
4 changed files with 399 additions and 37 deletions
@@ -133,10 +133,19 @@ impl ProtocolEndpoint {
Ok(EndpointOutcome::Dropped)
}
pub(crate) fn decide_route(&self, dst_path: &[String]) -> RouteDecision {
/// Returns the current route decision for an absolute destination path.
///
/// Runtime owners use this to validate transport availability before invoking
/// endpoint operations that also mutate hook state.
#[must_use]
pub fn route_decision(&self, dst_path: &[String]) -> RouteDecision {
self.routing.route(dst_path)
}
pub(crate) fn decide_route(&self, dst_path: &[String]) -> RouteDecision {
self.route_decision(dst_path)
}
/// Returns whether one `src_path` is topologically valid for the ingress side that delivered
/// the frame.
///