MCPcopy Create free account

hub / github.com/FedericoBruzzone/tgt / functions

Functions413 in github.com/FedericoBruzzone/tgt

Methodnew
()
examples/example_chat_list.rs:97
Methodnew
()
examples/telegram.rs:106
Methodnew_boxed
Create a new boxed instance of the component. # Returns `Box<Self>` - A boxed instance of the component.
src/components/component_traits.rs:109
Methodnext
(&mut self)
src/tg/tg_backend.rs:519
Methodoffline
(&mut self)
src/tg/tg_backend.rs:271
Methodopen_chat_user_status
(&self)
src/tg/tg_context.rs:146
Methodoverride_fields
Allow the fields of the default configuration to be overridden by the fields of the custom configuration when merging the configurations. Usually, the
src/configs/config_file.rs:191
Methodoverride_fields
()
src/configs/custom/palette_custom.rs:38
Methodoverride_fields
()
src/configs/custom/app_custom.rs:49
Methodoverride_fields
()
src/configs/custom/keymap_custom.rs:334
Methodoverride_fields
()
src/configs/custom/logger_custom.rs:54
Methodoverride_fields
()
src/configs/custom/telegram_custom.rs:61
Methodoverride_fields
()
src/configs/custom/theme_custom.rs:50
Methodpalette_config
Get the palette configuration. This function takes the lock on the palette configuration and returns the palette configuration. The palette configurat
src/app_context.rs:169
Methodpartial_cmp
(&self, other: &Self)
src/tg/ordered_chat.rs:24
Methodpartial_cmp
(&self, other: &Self)
examples/telegram.rs:51
Methodprepare_to_get_chat_history
By default telegram send us only one message the first time
src/tg/tg_backend.rs:121
Methodprint_config_file_error
Print the configuration file error. It is used to print the error when the configuration file is not correct. It prints the unrecognized settings. #
src/configs/custom/keymap_custom.rs:101
Functionquit_cli
Quit the cli. # Arguments `tg_backend` - A mutable reference to the TgBackend struct.
src/run.rs:418
Methodregister_action_handler
(&mut self, tx: UnboundedSender<Action>)
src/components/status_bar.rs:86
Methodregister_action_handler
(&mut self, tx: UnboundedSender<Action>)
src/components/prompt_window.rs:608
Methodregister_action_handler
(&mut self, tx: UnboundedSender<Action>)
src/components/chat_list_window.rs:262
Methodregister_action_handler
(&mut self, tx: mpsc::UnboundedSender<Action>)
src/components/reply_message.rs:73
Methodregister_action_handler
(&mut self, tx: mpsc::UnboundedSender<Action>)
src/components/title_bar.rs:92
Methodregister_action_handler
(&mut self, tx: UnboundedSender<Action>)
src/components/chat_window.rs:196
Methodregister_action_handler
(&mut self, tx: mpsc::UnboundedSender<Action>)
src/components/component_traits.rs:25
Methodregister_action_handler
(&mut self, tx: UnboundedSender<Action>)
src/components/core_window.rs:183
Methodreply_message_id
(&self)
src/tg/tg_context.rs:218
Methodreply_message_text
(&self)
src/tg/tg_context.rs:222
Methodresume
Resume the user interface and start processing events. # Returns `Result<(), io::Error>` - An Ok result or an error.
src/tui_backend.rs:158
Methodsearch_config_file
Search for a configuration file in the configuration directories. This function searches the configuration directories for the specified file name and
src/configs/config_file.rs:84
Methodsend_message
( &mut self, message: String, chat_id: i64, reply_to: Option<TdMessageReplyToM
src/tg/tg_backend.rs:176
Methodset_bg
Set the background color of the `ThemeStyle`. # Arguments `bg` - The background color of the `ThemeStyle`. # Returns `Self` - The modified instance
src/configs/config_theme.rs:27
Methodset_chat_positions
( mut chats_index: MutexGuard<'_, BTreeSet<OrderedChat>>, chat: &mut Chat, positions:
src/tg/tg_backend.rs:464
Methodset_chat_positions
( main_chat_list: Arc<Mutex<BTreeSet<OrderedChat>>>, chat: &mut Chat, positions: Vec<C
examples/telegram.rs:670
Methodset_fg
Set the foreground color of the `ThemeStyle`. # Arguments `fg` - The foreground color of the `ThemeStyle`. # Returns `Self` - The modified instance
src/configs/config_theme.rs:38
Methodstr_to_color
Convert a string to a `Color`. # Arguments `s` - The string to convert to a `Color`. # Returns `Result<Color, AppError>` - The converted `Color`.
src/configs/config_theme.rs:70
Methodstr_to_color_with_palette
Convert a string to a `Color`. Different from `str_to_color`, this function will try to find the color in the palette first. If the color is not found
src/configs/config_theme.rs:136
Methodsupported_formats
Get the supported file formats for the configuration file type. # Returns `&'static [FileFormat]` - The supported file formats.
src/configs/config_type.rs:80
Methodsuspend
Suspend the user interface and stop processing events. This will disable the raw mode for the terminal and switch back to the main screen. # Returns
src/tui_backend.rs:148
Functiontest_app_config_default
()
src/configs/custom/app_custom.rs:125
Functiontest_app_config_from_raw
()
src/configs/custom/app_custom.rs:139
Functiontest_app_config_merge
()
src/configs/custom/app_custom.rs:162
Functiontest_app_config_override_fields
()
src/configs/custom/app_custom.rs:196
Functiontest_get_type
()
src/configs/custom/palette_custom.rs:177
Functiontest_get_type
()
src/configs/custom/app_custom.rs:227
Functiontest_get_type
()
src/configs/custom/keymap_custom.rs:550
Functiontest_get_type
()
src/configs/custom/telegram_custom.rs:386
Functiontest_get_type
()
src/configs/custom/theme_custom.rs:435
Functiontest_keymap_config_default
()
src/configs/custom/keymap_custom.rs:439
Functiontest_keymap_config_from_raw
()
src/configs/custom/keymap_custom.rs:463
Functiontest_keymap_config_from_raw_empty
()
src/configs/custom/keymap_custom.rs:448
Functiontest_keymap_config_merge
()
src/configs/custom/keymap_custom.rs:484
Functiontest_keymap_config_override_fields
()
src/configs/custom/keymap_custom.rs:529
Functiontest_logger_config_default
()
src/configs/custom/logger_custom.rs:122
Functiontest_logger_config_from_raw
()
src/configs/custom/logger_custom.rs:137
Functiontest_logger_config_get_type
()
src/configs/custom/logger_custom.rs:222
Functiontest_logger_config_merge
()
src/configs/custom/logger_custom.rs:161
Functiontest_logger_config_override_fields
()
src/configs/custom/logger_custom.rs:192
Functiontest_merge_all_fields
()
src/configs/custom/app_custom.rs:201
Functiontest_merge_all_fields
()
src/configs/custom/keymap_custom.rs:534
Functiontest_merge_all_fields
()
src/configs/custom/logger_custom.rs:197
Functiontest_merge_all_fields
()
src/configs/custom/telegram_custom.rs:341
Functiontest_merge_all_fields
()
src/configs/custom/theme_custom.rs:413
Functiontest_override_fields
()
src/configs/custom/palette_custom.rs:172
Functiontest_override_fields
()
src/configs/custom/theme_custom.rs:408
Functiontest_palette_config_default
()
src/configs/custom/palette_custom.rs:117
Functiontest_palette_config_from_raw
()
src/configs/custom/palette_custom.rs:132
Functiontest_palette_config_from_raw_empty
()
src/configs/custom/palette_custom.rs:123
Functiontest_palette_config_merge
()
src/configs/custom/palette_custom.rs:152
Functiontest_telegram_config_default
()
src/configs/custom/telegram_custom.rs:170
Functiontest_telegram_config_override_fields
()
src/configs/custom/telegram_custom.rs:336
Functiontest_telegram_from_raw
()
src/configs/custom/telegram_custom.rs:177
Functiontest_telegram_merge
()
src/configs/custom/telegram_custom.rs:220
Functiontest_telegram_merge_none
()
src/configs/custom/telegram_custom.rs:265
Functiontest_telegram_merge_partial
()
src/configs/custom/telegram_custom.rs:294
Functiontest_theme_config_default
()
src/configs/custom/theme_custom.rs:194
Functiontest_theme_config_from_raw
()
src/configs/custom/theme_custom.rs:220
Functiontest_theme_config_from_raw_empty
()
src/configs/custom/theme_custom.rs:205
Functiontest_theme_config_merge
()
src/configs/custom/theme_custom.rs:284
Functiontest_theme_style_as_style
()
src/configs/config_theme.rs:317
Functiontest_theme_style_default
()
src/configs/config_theme.rs:336
Functiontest_theme_style_from
()
src/configs/config_theme.rs:225
Functiontest_theme_style_from_ref
()
src/configs/config_theme.rs:344
Functiontest_theme_style_str_to_color
()
src/configs/config_theme.rs:243
Functiontest_theme_style_str_to_color_with_palette
()
src/configs/config_theme.rs:280
Methodtheme_config
Get the theme configuration. This function takes the lock on the theme configuration and returns the theme configuration. The theme configuration is a
src/app_context.rs:159
Methodtimestamp
(&self)
src/tg/message_entry.rs:51
Methodtry_name_from_chats_or_users
(&self, user_id: i64)
src/tg/tg_context.rs:192
Methodunfocus
Set the `focused` flag for the `StatusBar`.
src/components/status_bar.rs:79
Methodunfocus
Set the `focused` flag for the `PromptWindow`.
src/components/prompt_window.rs:599
Methodunfocus
Set the `focused` flag for the `ChatListWindow`.
src/components/chat_list_window.rs:255
Methodunfocus
Set the `focused` flag for the `ReplyMessage`.
src/components/reply_message.rs:66
Methodunfocus
Set the `focused` flag for the `TitleBar`.
src/components/title_bar.rs:85
Methodunfocus
Set the `focused` flag for the `ChatWindow`.
src/components/chat_window.rs:189
Functionunwrap_or_fail
Unwrap a result or fail with an error message. This function will unwrap a result and return the value if it is Ok. If the result is an error, this fu
src/utils.rs:58
Methodupdate
(&mut self, action: Action)
src/components/status_bar.rs:91
Methodupdate
(&mut self, action: Action)
src/components/prompt_window.rs:614
Methodupdate
(&mut self, action: Action)
src/components/chat_list_window.rs:267
Methodupdate
(&mut self, action: Action)
src/components/chat_window.rs:201
← previousnext →301–400 of 413, ranked by callers