pub trait Bootstrap {
type Error: Error + Send + Sync + 'static;
// Provided method
fn bootstrap(&mut self, _ctx: &mut BootstrapCtx) -> Result<(), Self::Error> { ... }
}Expand description
User-facing Contract trait for Component bootstrap. Default no-op means existing Components opt in by implementing the trait — the framework treats every Component as implicitly bootstrap-capable.
Sized to keep the trait usable as a regular bound; the framework invokes the impl through the engine’s component table where each entry already carries the concrete type.
Required Associated Types§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".