Skip to main content

Mads

Struct Mads 

Source
pub struct Mads { /* private fields */ }
Expand description

An explicitly constructed application and its lifecycle state.

Implementations§

Source§

impl Mads

Source

pub fn builder() -> MadsBuilder

Creates a builder with empty configuration.

Source

pub fn builder_with_config(config: Config) -> MadsBuilder

Creates a builder with caller-supplied configuration.

Source

pub const fn state(&self) -> LifecycleState

Returns the application’s current lifecycle state.

Source

pub const fn context(&self) -> &ApplicationContext

Returns the immutable application context.

Source

pub const fn graph(&self) -> &ApplicationGraph

Returns the immutable graph validated before construction.

Source

pub const fn construction_plan(&self) -> &ConstructionPlan

Returns the deterministic provider construction plan that was executed.

Source

pub fn auto_configurations(&self) -> &[AutoConfigurationReport]

Returns reports for official auto-configurations evaluated before the build.

Source

pub const fn module_graph(&self) -> Option<&ModuleGraph>

Returns the rooted module graph, or None for a complete-catalog build.

Source

pub async fn start(&mut self) -> Result<()>

Starts registered lifecycle hooks.

Source

pub async fn shutdown(&mut self) -> Result<()>

Stops registered lifecycle hooks in reverse registration order.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.