pub trait AppBootstrap {
// Required method
fn bootstrap() -> BootstrapResult<AppBootstrapper>;
}
Expand description
Trait for app modules that can bootstrap themselves
This trait is automatically implemented for modules marked with #[module]
that are designated as app modules (typically the root module).
Required Methods§
Sourcefn bootstrap() -> BootstrapResult<AppBootstrapper>
fn bootstrap() -> BootstrapResult<AppBootstrapper>
Start the bootstrap process for this app module
This method discovers all modules in the dependency tree, configures the DI container, registers all controllers, and returns an AppBootstrapper ready for server startup.
Returns a BootstrapResult<AppBootstrapper>
to allow proper error handling
instead of panicking on configuration errors.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.