[][src]Function nuts::store_to_domain

pub fn store_to_domain<D, T>(domain: &D, data: T) where
    D: DomainEnumeration,
    T: Any

Puts the data object to the domain, which can be accessed by all associated activities.

This function is only valid outside of activities. Inside activities, only access domains through the handlers borrowed access. Typically, this function is only used for initialization of the domain state.