pub struct CompiledModule { /* private fields */ }Expand description
A validated application module with precomputed provider visibility.
Implementations§
Source§impl CompiledModule
impl CompiledModule
Sourcepub fn providers(&self) -> &[ProviderDefinition]
pub fn providers(&self) -> &[ProviderDefinition]
Returns provider definitions in declaration order.
Sourcepub fn controllers(&self) -> &[ControllerDefinition]
pub fn controllers(&self) -> &[ControllerDefinition]
Returns controller definitions in declaration order.
Sourcepub fn exports(&self) -> &[ProviderKey]
pub fn exports(&self) -> &[ProviderKey]
Returns provider keys exported by this module.
Sourcepub fn provider_owner(&self, key: ProviderKey) -> Option<ModuleId>
pub fn provider_owner(&self, key: ProviderKey) -> Option<ModuleId>
Returns the owner of a provider visible from this module.
Sourcepub fn lifecycle(&self) -> &[LifecycleDefinition]
pub fn lifecycle(&self) -> &[LifecycleDefinition]
Returns lifecycle definitions in declaration order.
Sourcepub fn async_init_callbacks(
&self,
) -> &[Arc<dyn Fn(ProviderValue, Arc<Container>) -> LifecycleFuture<'static> + Send + Sync>]
pub fn async_init_callbacks( &self, ) -> &[Arc<dyn Fn(ProviderValue, Arc<Container>) -> LifecycleFuture<'static> + Send + Sync>]
Returns async initialization callbacks in declaration order.
Trait Implementations§
Source§impl Clone for CompiledModule
impl Clone for CompiledModule
Source§fn clone(&self) -> CompiledModule
fn clone(&self) -> CompiledModule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for CompiledModule
impl !UnwindSafe for CompiledModule
impl Freeze for CompiledModule
impl Send for CompiledModule
impl Sync for CompiledModule
impl Unpin for CompiledModule
impl UnsafeUnpin for CompiledModule
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