pub async fn handle_ui_action(
action: UIAction,
node: &Arc<Node>,
ui_sender: UnboundedSender<UIEvent>,
) -> Result<()>Expand description
Handles incoming UIActions and dispatches them to appropriate handlers.
This function is the central point for processing user-initiated actions, translating them into background tasks or direct application responses.
§Arguments
action- TheUIActionto be handled.node- A shared reference to the application’s coreNode.ui_sender- The sender for emittingUIEvents back to the UI.
§Errors
Returns an error if an unrecoverable issue occurs during action processing.