pub trait Initialize: Module {
type Error;
// Required method
fn initialize(
&mut self,
context: &LifecycleContext,
) -> Result<(), Self::Error>;
}Expand description
Opts a module into resource preparation before its process starts.
Required Associated Types§
Required Methods§
Sourcefn initialize(&mut self, context: &LifecycleContext) -> Result<(), Self::Error>
fn initialize(&mut self, context: &LifecycleContext) -> Result<(), Self::Error>
Prepares resources; this does not mean the module is accepting work.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".