Crate rapace_introspection

Crate rapace_introspection 

Source
Expand description

§rapace-introspection

crates.io documentation MIT/Apache-2.0 licensed

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 service
  • MethodInfo - Information about a service method
  • ArgInfo - Information about method arguments
  • DefaultServiceIntrospection - Default implementation of the introspection trait

§License

MIT OR Apache-2.0

Structs§

ArgInfo
Argument metadata.
DefaultServiceIntrospection
Default implementation that reads from the global registry.
MethodInfo
Information about a method.
ServiceInfo
Information about a registered service.
ServiceIntrospectionClient
Client stub for the #trait_name service.
ServiceIntrospectionRegistryClient
Registry-aware client stub for the #trait_name service.
ServiceIntrospectionServer
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§

ServiceIntrospection
Service introspection RPC interface.

Functions§

service_introspection_register
Register this service with a registry.