mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-04 04:27:34 +00:00
32 lines
644 B
Rust
32 lines
644 B
Rust
#[allow(dead_code)]
|
|
pub(crate) const SERVER_NAME_MTXCHAT: &str = "_Matrix chat_";
|
|
|
|
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
|
pub enum ChatTestOp {
|
|
/// chat ui event
|
|
Event = 0,
|
|
/// menu item click
|
|
Menu,
|
|
/// chat ui user post
|
|
Post,
|
|
/// chat ui keystroke
|
|
Rawkeys,
|
|
/// exit the application
|
|
Quit,
|
|
}
|
|
|
|
#[derive(Debug, num_derive::FromPrimitive, num_derive::ToPrimitive)]
|
|
pub enum MenuOp {
|
|
Login,
|
|
Logout,
|
|
Noop,
|
|
Room,
|
|
}
|
|
|
|
#[allow(dead_code)]
|
|
pub struct Msg {
|
|
pub type_: String,
|
|
pub body: Option<String>,
|
|
pub sender: Option<String>,
|
|
pub ts: Option<u64>,
|
|
}
|