Crate app_ctx

Source

Structs§

AppContext
the context to store all beans. AppContext owns the ownership of all registered beans. When AppContext is dropped, all beans will be dropped too
AppContextBuilder
the context to store all beans. AppContext owns the ownership of all registered beans. When AppContext is dropped, all beans will be dropped too
AppContextInner
the inner storage for beans. the Arc<...> stores beans with lazy initialization
BeanMetadata
metadata of a bean. it can be used as map key
BeanRef
the weak reference of bean, avoiding circular references
BeanType
like Class<T> in java
BeanWrapper
a wrapper for Arc<dyn Any +Send +Sync>, to store helper data
RefWrapper
make the usage easier

Traits§

BeanTypeOf
BuildFromContext
A trait for beans which can be created from AppContextBuilder. ctx is the AppContext for acquiring lazy-initialized beans, and extras are extra params for this build.
BuildFromContextAsync
async implementation for building context