pub struct ProviderRegistry { /* private fields */ }Expand description
Provider registry manages service providers and their lifecycle
Implementations§
Source§impl ProviderRegistry
impl ProviderRegistry
pub fn new() -> Self
Sourcepub fn register<P: ServiceProvider + 'static>(&mut self, provider: P)
pub fn register<P: ServiceProvider + 'static>(&mut self, provider: P)
Register a service provider
Sourcepub fn resolve_dependencies(&mut self) -> Result<(), ProviderError>
pub fn resolve_dependencies(&mut self) -> Result<(), ProviderError>
Resolve provider dependencies and determine execution order
Sourcepub fn register_all(
&self,
builder: ContainerBuilder,
) -> Result<ContainerBuilder, ProviderError>
pub fn register_all( &self, builder: ContainerBuilder, ) -> Result<ContainerBuilder, ProviderError>
Register all providers with the container builder
Sourcepub fn provider_names(&self) -> Vec<&str>
pub fn provider_names(&self) -> Vec<&str>
Get all registered provider names
Sourcepub fn registration_order(&self) -> &[usize]
pub fn registration_order(&self) -> &[usize]
Get registration order
Sourcepub fn boot_order(&self) -> &[usize]
pub fn boot_order(&self) -> &[usize]
Get boot order
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProviderRegistry
impl !RefUnwindSafe for ProviderRegistry
impl Send for ProviderRegistry
impl Sync for ProviderRegistry
impl Unpin for ProviderRegistry
impl !UnwindSafe for ProviderRegistry
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