Expand description
§rapace-introspection
Service introspection RPC service for rapace.
This crate provides a ServiceIntrospection RPC service that allows clients to query what services and methods are available at runtime.
§Features
- List all registered services
- Describe a specific service by name
- Check if a method ID is supported
- Runtime service discovery
§Example
use rapace_introspection::{ServiceIntrospection, ServiceIntrospectionServer};
use rapace_registry::introspection::DefaultServiceIntrospection;
// Create introspection server
let introspection = DefaultServiceIntrospection::new();
let server = ServiceIntrospectionServer::new(introspection);
// Add to your cell's dispatcher
use rapace_cell::DispatcherBuilder;
let dispatcher = DispatcherBuilder::new()
.add_service(server)
.build();§Re-exports
For convenience, this crate re-exports key types from rapace-registry:
ServiceInfo- Information about a registered serviceMethodInfo- Information about a service methodArgInfo- Information about method argumentsDefaultServiceIntrospection- Default implementation of the introspection trait
§License
MIT OR Apache-2.0
Structs§
- ArgInfo
- Argument metadata.
- Default
Service Introspection - Default implementation that reads from the global registry.
- Method
Info - Information about a method.
- Service
Info - Information about a registered service.
- Service
Introspection Client - Client stub for the #trait_name service.
- Service
Introspection Registry Client - Registry-aware client stub for the #trait_name service.
- Service
Introspection Server - Server dispatcher for the #trait_name service.
Constants§
- SERVICE_
INTROSPECTION_ METHOD_ ID_ DESCRIBE_ SERVICE - SERVICE_
INTROSPECTION_ METHOD_ ID_ HAS_ METHOD - SERVICE_
INTROSPECTION_ METHOD_ ID_ LIST_ SERVICES
Traits§
- Service
Introspection - Service introspection RPC interface.
Functions§
- service_
introspection_ register - Register this service with a registry.