pub struct Strings {Show 46 fields
pub app_name: &'static str,
pub connections: &'static str,
pub no_root_warning: &'static str,
pub sudo_ok: &'static str,
pub filter_label: &'static str,
pub search_mode: &'static str,
pub tab_tree: &'static str,
pub tab_network: &'static str,
pub tab_connection: &'static str,
pub no_selected_process: &'static str,
pub process_not_found: &'static str,
pub iface_address: &'static str,
pub iface_interface: &'static str,
pub iface_protocol: &'static str,
pub iface_bind: &'static str,
pub iface_localhost_only: &'static str,
pub iface_all_interfaces: &'static str,
pub iface_specific: &'static str,
pub iface_loopback: &'static str,
pub iface_all: &'static str,
pub conn_local: &'static str,
pub conn_remote: &'static str,
pub conn_state: &'static str,
pub conn_process: &'static str,
pub conn_cmdline: &'static str,
pub help_text: &'static str,
pub kill_cancel: &'static str,
pub copied: &'static str,
pub refreshed: &'static str,
pub clipboard_unavailable: &'static str,
pub scan_error: &'static str,
pub cancelled: &'static str,
pub lang_switched: &'static str,
pub sudo_prompt_title: &'static str,
pub sudo_password_label: &'static str,
pub sudo_confirm_hint: &'static str,
pub sudo_failed: &'static str,
pub sudo_wrong_password: &'static str,
pub sudo_elevated: &'static str,
pub hint_help: &'static str,
pub hint_search: &'static str,
pub hint_kill: &'static str,
pub hint_sudo: &'static str,
pub hint_quit: &'static str,
pub hint_lang: &'static str,
pub help_title: &'static str,
}Expand description
All localizable UI strings for one language.
Each language module (en, ru, zh) provides a static STRINGS: Strings.
Adding a field here forces all language files to be updated — compile-time
completeness check.
Fields§
§app_name: &'static str§connections: &'static str§no_root_warning: &'static str§sudo_ok: &'static str§filter_label: &'static str§search_mode: &'static str§tab_tree: &'static str§tab_network: &'static str§tab_connection: &'static str§no_selected_process: &'static str§process_not_found: &'static str§iface_address: &'static str§iface_interface: &'static str§iface_protocol: &'static str§iface_bind: &'static str§iface_localhost_only: &'static str§iface_all_interfaces: &'static str§iface_specific: &'static str§iface_loopback: &'static str§iface_all: &'static str§conn_local: &'static str§conn_remote: &'static str§conn_state: &'static str§conn_process: &'static str§conn_cmdline: &'static str§help_text: &'static str§kill_cancel: &'static str§copied: &'static str§refreshed: &'static str§scan_error: &'static str§cancelled: &'static str§lang_switched: &'static str§sudo_prompt_title: &'static str§sudo_password_label: &'static str§sudo_confirm_hint: &'static str§sudo_failed: &'static str§sudo_wrong_password: &'static str§sudo_elevated: &'static str§hint_help: &'static str§hint_search: &'static str§hint_kill: &'static str§hint_sudo: &'static str§hint_quit: &'static str§hint_lang: &'static str§help_title: &'static strImplementations§
Source§impl Strings
impl Strings
pub fn fmt_connections(&self, n: usize) -> String
pub fn fmt_kill_confirm(&self, name: &str, pid: u32) -> String
pub fn fmt_kill_sent(&self, sig: &str, name: &str, pid: u32) -> String
pub fn fmt_kill_failed(&self, err: &str) -> String
pub fn fmt_scan_error(&self, err: &str) -> String
pub fn fmt_all_ports(&self, n: usize) -> String
pub fn fmt_sudo_error(&self, err: &str) -> String
Auto Trait Implementations§
impl Freeze for Strings
impl RefUnwindSafe for Strings
impl Send for Strings
impl Sync for Strings
impl Unpin for Strings
impl UnsafeUnpin for Strings
impl UnwindSafe for Strings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more