mirror of
https://github.com/Astatin3/unshell.git
synced 2026-06-09 06:47:59 -06:00
Reduce leaf hook data actions
This commit is contained in:
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user