pub struct ProviderRegistry { /* private fields */ }Expand description
Registry for managing provider instances
Implementations§
Source§impl ProviderRegistry
impl ProviderRegistry
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create registry with default providers
Sourcepub fn register(&mut self, provider: Arc<dyn SourceProvider>)
pub fn register(&mut self, provider: Arc<dyn SourceProvider>)
Register a provider
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