Module types

Source
Expand description

Type aliases.

Traits§

Registerable
A marker trait for all types that can be registered with Registry::transient.
RegisterableSingleton
A marker trait for all types that can be registered with Registry::singleton.
SingletonCtor
A generic constructor for singletons.
SingletonCtorDeps
A generic constructor for singletons with dependencies.
SingletonCtorFallible
A generic constructor for fallible singletons.
SingletonCtorFallibleDeps
A generic constructor for fallible singletons with dependencies.
TransientCtor
Constructor closure for transients.
TransientCtorDeps
Constructor closure for transients.
TransientCtorFallible
Constructor closure for fallible transients.
TransientCtorFallibleDeps
Constructor closure for fallible transients.

Type Aliases§

Ref
A generic reference type that’s used as the default type for types with the singleton lifetime.
RefWeak
A generic weak reference type that’s used as the return type for newly created child registries.