pub struct ServiceLocatorBridge { /* private fields */ }Expand description
Bridges RDI into a single IServiceLocator implementation.
Resolution order for get_any:
- RDI provider (compile-time services)
Resolution order for get_any_named:
- Named registry in RDI provider
Implementations§
Source§impl ServiceLocatorBridge
impl ServiceLocatorBridge
pub fn new(provider: Arc<RdiProvider>) -> Self
pub fn provider(&self) -> &Arc<RdiProvider> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ServiceLocatorBridge
impl !UnwindSafe for ServiceLocatorBridge
impl Freeze for ServiceLocatorBridge
impl Send for ServiceLocatorBridge
impl Sync for ServiceLocatorBridge
impl Unpin for ServiceLocatorBridge
impl UnsafeUnpin for ServiceLocatorBridge
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