pub struct Mads { /* private fields */ }Expand description
An explicitly constructed application and its lifecycle state.
Implementations§
Source§impl Mads
impl Mads
Sourcepub fn builder() -> MadsBuilder
pub fn builder() -> MadsBuilder
Creates a builder with empty configuration.
Sourcepub fn builder_with_config(config: Config) -> MadsBuilder
pub fn builder_with_config(config: Config) -> MadsBuilder
Creates a builder with caller-supplied configuration.
Sourcepub const fn state(&self) -> LifecycleState
pub const fn state(&self) -> LifecycleState
Returns the application’s current lifecycle state.
Sourcepub const fn context(&self) -> &ApplicationContext
pub const fn context(&self) -> &ApplicationContext
Returns the immutable application context.
Sourcepub const fn graph(&self) -> &ApplicationGraph
pub const fn graph(&self) -> &ApplicationGraph
Returns the immutable graph validated before construction.
Sourcepub const fn construction_plan(&self) -> &ConstructionPlan
pub const fn construction_plan(&self) -> &ConstructionPlan
Returns the deterministic provider construction plan that was executed.
Sourcepub fn auto_configurations(&self) -> &[AutoConfigurationReport]
pub fn auto_configurations(&self) -> &[AutoConfigurationReport]
Returns reports for official auto-configurations evaluated before the build.
Sourcepub const fn module_graph(&self) -> Option<&ModuleGraph>
pub const fn module_graph(&self) -> Option<&ModuleGraph>
Returns the rooted module graph, or None for a complete-catalog build.
Auto Trait Implementations§
impl !RefUnwindSafe for Mads
impl !UnwindSafe for Mads
impl Forget for Mads
impl Freeze for Mads
impl Move for Mads
impl Send for Mads
impl Sync for Mads
impl Unpin for Mads
impl UnsafeUnpin for Mads
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