pub trait Handler<T>: Debug + DynClone + Send + Sync {
fn into_any(self: Box<Self>) -> Box<dyn AnyHandler>;
fn execute(&self, state: &mut dyn State, args: T);
}
Expand description
A value stream handler of any nature.
pub trait Handler<T>: Debug + DynClone + Send + Sync {
fn into_any(self: Box<Self>) -> Box<dyn AnyHandler>;
fn execute(&self, state: &mut dyn State, args: T);
}
A value stream handler of any nature.