pub async fn register_target_provider_endpoints<R: RpcServer, T: DeploymentTarget + 'static>(
rpc_server: &R,
deployment_target: Arc<T>,
) -> Result<(), Box<dyn Error>>Expand description
Registers RPC endpoints for managing a deployment target via Eclipse Symphony’s uProtocol Target Provider.
This function registers three RPC endpoints that delegate to the provided DeploymentTarget implementation:
Get(resource ID0x0001) - Retrieves current component statusUpdate(resource ID0x0002) - Updates deployment componentsDelete(resource ID0x0003) - Removes deployment components
§Arguments
rpc_server- The RPC server to register the endpoints ondeployment_target- The deployment target implementation to delegate requests to
§Errors
Returns an error if any of the endpoints cannot be registered on the RPC server.