pub trait RuntimeComponentBundle {
// Required method
fn register(self, registry: &mut RuntimeComponentRegistry);
}Expand description
Product-owned runtime component bundle.
A bundle is useful when registration needs to consume owned handles such as database pools, background task collections, or other shutdown-only resources. Product subsystems should expose component factory functions that return a bundle registration instead of asking entrypoints to call low-level registry functions directly.
Required Methods§
Sourcefn register(self, registry: &mut RuntimeComponentRegistry)
fn register(self, registry: &mut RuntimeComponentRegistry)
Registers this bundle into the runtime component registry.