Skip to main content

Module factory

Module factory 

Source
Expand description

Factory traits that build a storage backend from its TOML subsection.

A driver crate implements the factory for each storage kind it provides and registers it on the Registry. The loader then calls the factory with the driver’s [storage.<name>] subsection (as a toml::Value) to construct the trait object.

Traits§

AuditSinkFactory
Builds an AuditSink from its [storage.<name>] TOML subsection.
CredentialStoreFactory
Builds a CredentialStore from its [storage.<name>] TOML subsection.
LifecycleStoreFactory
Builds a LifecycleStore from its [storage.<name>] TOML subsection.
PolicyStoreFactory
Builds a PolicyStore from its [storage.<name>] TOML subsection.
RateLimitCounterFactory
Builds a RateLimitCounter from its [storage.<name>] TOML subsection.
SessionStoreFactory
Builds a SessionStore from its [storage.<name>] TOML subsection.