Module registry

Module registry 

Source
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
  • EnhancedRegistry - Extended version with statistics tracking and observability
  • turbomcp_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
RegistryBuilder
Registry builder for fluent configuration

Enums§

RegistryError
Errors that can occur in the registry

Traits§

Component
Convenience trait for components that can register themselves