pub struct ContainerInspector { /* private fields */ }
Expand description
Container inspection utilities
Implementations§
Source§impl ContainerInspector
impl ContainerInspector
Sourcepub fn new(container: Arc<IocContainer>) -> Self
pub fn new(container: Arc<IocContainer>) -> Self
Create a new container inspector
Sourcepub fn get_container_info(&self) -> ContainerInfo
pub fn get_container_info(&self) -> ContainerInfo
Get basic container information
Sourcepub fn inspect_service<T: 'static>(&self) -> Option<ServiceInfo>
pub fn inspect_service<T: 'static>(&self) -> Option<ServiceInfo>
Get detailed service information
Sourcepub fn get_resolution_stats(&self) -> HashMap<String, ResolutionStats>
pub fn get_resolution_stats(&self) -> HashMap<String, ResolutionStats>
Get resolution statistics for all services
Sourcepub fn get_performance_metrics(&self) -> PerformanceMetrics
pub fn get_performance_metrics(&self) -> PerformanceMetrics
Get performance metrics
Sourcepub fn set_tracing_enabled(&self, enabled: bool)
pub fn set_tracing_enabled(&self, enabled: bool)
Enable/disable resolution tracing
Sourcepub fn set_profiling_enabled(&self, enabled: bool)
pub fn set_profiling_enabled(&self, enabled: bool)
Enable/disable performance profiling
Sourcepub fn clear_debug_data(&self)
pub fn clear_debug_data(&self)
Clear all tracing and profiling data
Sourcepub fn generate_debug_report(&self) -> String
pub fn generate_debug_report(&self) -> String
Generate a comprehensive debug report
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContainerInspector
impl !RefUnwindSafe for ContainerInspector
impl Send for ContainerInspector
impl Sync for ContainerInspector
impl Unpin for ContainerInspector
impl !UnwindSafe for ContainerInspector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more