Skip to main content

debug_route_sandbox_path_with_request

Function debug_route_sandbox_path_with_request 

Source
pub async fn debug_route_sandbox_path_with_request<C: ComponentInstanceInterface + 'static>(
    component: &Arc<C>,
    sandbox_path: impl Into<SandboxPath>,
    request: Option<Request>,
) -> Result<CapabilitySource, RoutingError>
Expand description

Calls route on the router with the given request at the given path within the component sandbox. Panics if the sandbox does not hold a router at that path.