evo_framework 2025.1.60000

Evo(lution) framework: A powerful framework designed for ai
Documentation
use crate::framework::ievo::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 IBridge: 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 or context
    fn on_request(&mut self, obj: Option<&dyn std::any::Any>);

    /// 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 or context
    fn on_response(&mut self, obj: Option<&dyn std::any::Any>);
}