pub struct DynamicModuleBuilder<M>where
M: Module + ModuleGraph,{ /* private fields */ }Expand description
Builds a DynamicModule from a static module graph, optionally applying provider overrides
before controllers are registered (useful for configurable modules and testing-like setups).
Implementations§
Source§impl<M> DynamicModuleBuilder<M>where
M: Module + ModuleGraph,
impl<M> DynamicModuleBuilder<M>where
M: Module + ModuleGraph,
pub fn new() -> Self
pub fn override_provider<T>(self, instance: Arc<T>) -> Self
pub fn build(self) -> DynamicModule
Trait Implementations§
Source§impl<M> Default for DynamicModuleBuilder<M>where
M: Module + ModuleGraph,
impl<M> Default for DynamicModuleBuilder<M>where
M: Module + ModuleGraph,
Auto Trait Implementations§
impl<M> Freeze for DynamicModuleBuilder<M>
impl<M> !RefUnwindSafe for DynamicModuleBuilder<M>
impl<M> Send for DynamicModuleBuilder<M>where
M: Send,
impl<M> !Sync for DynamicModuleBuilder<M>
impl<M> Unpin for DynamicModuleBuilder<M>where
M: Unpin,
impl<M> UnsafeUnpin for DynamicModuleBuilder<M>
impl<M> !UnwindSafe for DynamicModuleBuilder<M>
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