Skip to main content

OnInvokeCallback

Type Alias OnInvokeCallback 

Source
pub type OnInvokeCallback<T> = Rc<dyn Fn(&mut App, &T) -> Option<Rc<dyn Any>>>;
Expand description

The signature of a callback accepted by CallbackAction::on_invoke.

Such callbacks are implementations of Action::invoke. The returned value is the return value of Action::invoke, the argument is the intent passed to Action::invoke, and so forth.

Aliased Typeยง

pub struct OnInvokeCallback<T> { /* private fields */ }