Skip to main content

ToastActionCallback

Type Alias ToastActionCallback 

Source
pub type ToastActionCallback = Rc<dyn Fn(&mut EventContext<'_>)>;
Expand description

Type-erased callback for a ToastAction. Fn (not FnMut) so the same callback can be wrapped in an Rc and dispatched from multiple paths (tap, keyboard, AT custom action).

Aliased Typeยง

pub struct ToastActionCallback { /* private fields */ }