handler

Attribute Macro handler 

Source
#[handler]
Expand description

The function to handle the selection of an item. Takes a Match as its first argument, and the second argument can be one of:

  • &T
  • &mut T

where T is the type returned by init.

Should return a HandleResult with the appropriate action.