pub type Callback<T> = fn(_: Context<T>) -> Result<(), Box<dyn Error>>;
Function that is called when an Event or Action is received.