Expand description
Basic handler registration and lookup. Generic component registry for dependency injection and service location.
This is the base registry providing type-safe component storage with minimal overhead.
It uses Any + Send + Sync trait objects for maximum flexibility.
§When to Use This Registry
Use this registry when you need:
- Simple, zero-overhead component registration and lookup
- Type-safe access to registered components
- Dependency injection patterns
- Service locator patterns
§Related Registries
EnhancedRegistry- Extended version with statistics tracking and observabilityturbomcp_server::registry::HandlerRegistry- Server-specific registry for MCP protocol handlers
This is the foundation - use EnhancedRegistry if you need advanced features.
Structs§
- Registry
- Component registry for dependency injection and service location
- Registry
Builder - Registry builder for fluent configuration
Enums§
- Registry
Error - Errors that can occur in the registry
Traits§
- Component
- Convenience trait for components that can register themselves