Skip to main content

Strings

Struct Strings 

Source
pub struct Strings {
Show 123 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 detail_panel_title: &'static str, pub detail_panel_tree_header: &'static str, pub no_selected_process: &'static str, pub section_connections: &'static str, pub section_processes: &'static str, pub section_ssh: &'static str, pub view_topology: &'static str, pub view_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 paused: &'static str, pub resumed: &'static str, pub no_connections: &'static str, pub no_filter_matches: &'static str, pub more: &'static str, pub col_age: &'static str, pub col_remote: &'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 hint_back: &'static str, pub hint_details: &'static str, pub hint_sort: &'static str, pub hint_copy: &'static str, pub hint_navigate: &'static str, pub hint_section_next: &'static str, pub hint_subtab: &'static str, pub hint_action_menu: &'static str, pub hint_edit_tunnel: &'static str, pub hint_pause: &'static str, pub hint_resume: &'static str, pub action_menu_title: &'static str, pub action_kill: &'static str, pub action_copy: &'static str, pub action_copy_pid: &'static str, pub action_block: &'static str, pub action_trace: &'static str, pub action_forward: &'static str, pub action_unavailable_no_remote: &'static str, pub command_palette_title: &'static str, pub command_palette_empty: &'static str, pub esc_again_to_clear_filter: &'static str, pub esc_again_to_discard_form: &'static str, pub forward_prompt_title: &'static str, pub forward_host_label: &'static str, pub forward_confirm_hint: &'static str, pub view_ssh_hosts: &'static str, pub view_tunnels: &'static str, pub ssh_col_alias: &'static str, pub ssh_col_target: &'static str, pub ssh_col_source: &'static str, pub ssh_hosts_empty: &'static str, pub ssh_hosts_reloaded: &'static str, pub tunnel_col_name: &'static str, pub tunnel_col_kind: &'static str, pub tunnel_col_local: &'static str, pub tunnel_col_remote: &'static str, pub tunnel_col_host: &'static str, pub tunnel_col_status: &'static str, pub tunnel_status_alive: &'static str, pub tunnel_status_dead: &'static str, pub tunnel_status_starting: &'static str, pub tunnel_status_failed: &'static str, pub tunnel_form_edit_title: &'static str, pub tunnel_form_field_required: &'static str, pub tunnels_empty: &'static str, pub tunnels_saved: &'static str, pub tunnel_killed: &'static str, pub tunnel_restarted: &'static str, pub tunnel_create_failed: &'static str, pub tunnel_kind_local: &'static str, pub tunnel_kind_dynamic: &'static str, pub tunnel_form_title: &'static str, pub tunnel_form_kind: &'static str, pub tunnel_form_local_port: &'static str, pub tunnel_form_remote_host: &'static str, pub tunnel_form_remote_port: &'static str, pub tunnel_form_host_alias: &'static str, pub tunnel_form_hint: &'static str, pub tunnel_form_invalid: &'static str, pub hint_new_tunnel: &'static str, pub hint_kill_tunnel: &'static str, pub hint_restart_tunnel: &'static str, pub hint_save_tunnels: &'static str, pub hint_reload: &'static str, pub hint_open_tunnel: &'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§detail_panel_title: &'static str§detail_panel_tree_header: &'static str§no_selected_process: &'static str§section_connections: &'static str§section_processes: &'static str§section_ssh: &'static str§view_topology: &'static str§view_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§clipboard_unavailable: &'static str§scan_error: &'static str§cancelled: &'static str§lang_switched: &'static str§paused: &'static str§resumed: &'static str§no_connections: &'static str§no_filter_matches: &'static str§more: &'static str§col_age: &'static str§col_remote: &'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§hint_back: &'static str§hint_details: &'static str§hint_sort: &'static str§hint_copy: &'static str§hint_navigate: &'static str§hint_section_next: &'static str§hint_subtab: &'static str§hint_action_menu: &'static str§hint_edit_tunnel: &'static str§hint_pause: &'static str§hint_resume: &'static str§action_menu_title: &'static str§action_kill: &'static str§action_copy: &'static str§action_copy_pid: &'static str§action_block: &'static str§action_trace: &'static str§action_forward: &'static str§action_unavailable_no_remote: &'static str§command_palette_title: &'static str§command_palette_empty: &'static str§esc_again_to_clear_filter: &'static str§esc_again_to_discard_form: &'static str§forward_prompt_title: &'static str§forward_host_label: &'static str§forward_confirm_hint: &'static str§view_ssh_hosts: &'static str§view_tunnels: &'static str§ssh_col_alias: &'static str§ssh_col_target: &'static str§ssh_col_source: &'static str§ssh_hosts_empty: &'static str§ssh_hosts_reloaded: &'static str§tunnel_col_name: &'static str§tunnel_col_kind: &'static str§tunnel_col_local: &'static str§tunnel_col_remote: &'static str§tunnel_col_host: &'static str§tunnel_col_status: &'static str§tunnel_status_alive: &'static str§tunnel_status_dead: &'static str§tunnel_status_starting: &'static str§tunnel_status_failed: &'static str§tunnel_form_edit_title: &'static str§tunnel_form_field_required: &'static str§tunnels_empty: &'static str§tunnels_saved: &'static str§tunnel_killed: &'static str§tunnel_restarted: &'static str§tunnel_create_failed: &'static str§tunnel_kind_local: &'static str§tunnel_kind_dynamic: &'static str§tunnel_form_title: &'static str§tunnel_form_kind: &'static str§tunnel_form_local_port: &'static str§tunnel_form_remote_host: &'static str§tunnel_form_remote_port: &'static str§tunnel_form_host_alias: &'static str§tunnel_form_hint: &'static str§tunnel_form_invalid: &'static str§hint_new_tunnel: &'static str§hint_kill_tunnel: &'static str§hint_restart_tunnel: &'static str§hint_save_tunnels: &'static str§hint_reload: &'static str§hint_open_tunnel: &'static str§help_title: &'static str

Implementations§

Source§

impl Strings

Source

pub fn fmt_connections(&self, n: usize) -> String

Source

pub fn fmt_kill_confirm(&self, name: &str, pid: u32) -> String

Source

pub fn fmt_kill_sent(&self, sig: &str, name: &str, pid: u32) -> String

Source

pub fn fmt_kill_failed(&self, err: &str) -> String

Source

pub fn fmt_scan_error(&self, err: &str) -> String

Source

pub fn fmt_all_ports(&self, n: usize) -> String

Source

pub fn fmt_sudo_error(&self, err: &str) -> String

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.