Skip to main content

register_default_backends

Function register_default_backends 

Source
pub fn register_default_backends()
Expand description

Registers the feature-enabled backend providers (backend-msb, backend-docker) with rightsize::backends. Runs its body once per process, and the core registry is itself idempotent by provider name, so calling this again — or also registering a provider by hand — is harmless.

Every module’s start calls this on its way into the core, so consumers of this crate write no backend wiring at all. Call it yourself only when the first container your process starts is a plain rightsize::Container rather than one of these modules (backend resolution happens at that first start and is cached for the life of the process).