routing

Function route_event_stream

Source
pub async fn route_event_stream<C>(
    use_decl: UseEventStreamDecl,
    target: &Arc<C>,
    mapper: &mut dyn DebugRouteMapper,
) -> Result<RouteSource, RoutingError>
where C: ComponentInstanceInterface + 'static,
Expand description

Routes an EventStream capability from target to its source, starting from use_decl.

If the capability is not allowed to be routed to the target, per the [crate::model::policy::GlobalPolicyChecker], then an error is returned.