Pagwin-Fedora/Hassium

allow for managers/components to depend on information provided by other managers/components

Opened this issue · 0 comments

managers/components that provide a dependency should implement a trait with a type argument with said typeargument being a data structure that represents the data they provide to dependents code would probably be something like

trait dependency_component<T>{
    fn dependency_value()->T;
}

would be useful for modules to be able to communicate with other modules intentions/actions that should be taken for example a buildQueue could be a dependency component which acts as a shell around the actual component a mutable reference to which gets returned by the dependency_value method allowing for various methods to add things they think should be built to the queue and then the queue builds those things