p2p_chat/ui/action.rs
1//! This module defines the actions that can be performed in the UI.
2#[derive(Debug)]
3pub enum UIAction {
4 /// Sends a message to a recipient.
5 ///
6 /// The first `String` is the recipient's PeerId, the second is the message content.
7 SendMessage(String, String),
8 /// Executes a command entered by the user.
9 ExecuteCommand(String),
10 /// Exits the application.
11 Exit,
12}