evo_framework 2025.2.51300

Evo(lution) framework: A powerful framework designed for ai
Documentation
use crate::framework::i_evo::IEvo;
/// Core trait for objects in the Evo framework.
/// Serves as a blueprint for objects to implement lifecycle methods
/// such as initialization and termination.
pub trait IControl: IEvo {
    /// Called when the object starts. This can be used to initialize
    /// or perform logic setup specific to the object.
    ///
    /// # Arguments
    /// * `obj` - An optional parameter for passing custom data_doc or context
    fn on_start(&mut self, obj: Option<&dyn std::any::Any>)  -> Result<(), Box<dyn std::error::Error>> ;

    /// Called when the object stops. This can be used to clean up
    /// or perform shutdown logic specific to the object.
    ///
    /// # Arguments
    /// * `obj` - An optional parameter for passing custom data_doc or context
    fn on_stop(&mut self, obj: Option<&dyn std::any::Any>)  -> Result<(), Box<dyn std::error::Error>> ;
}