Skip to main content

Strings

Struct Strings 

Source
pub struct Strings {
Show 63 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 view_chart: &'static str, pub view_topology: &'static str, pub view_process: &'static str, pub view_namespaces: &'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 hint_back: &'static str, pub hint_details: &'static str, pub hint_views: &'static str, pub hint_sort: &'static str, pub hint_copy: &'static str, pub hint_block: &'static str, pub hint_trace: &'static str, pub hint_navigate: &'static str, pub hint_tabs: &'static str, pub forward_prompt_title: &'static str, pub forward_host_label: &'static str, pub forward_confirm_hint: &'static str, pub hint_forward: &'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§view_chart: &'static str§view_topology: &'static str§view_process: &'static str§view_namespaces: &'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§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_views: &'static str§hint_sort: &'static str§hint_copy: &'static str§hint_block: &'static str§hint_trace: &'static str§hint_navigate: &'static str§hint_tabs: &'static str§forward_prompt_title: &'static str§forward_host_label: &'static str§forward_confirm_hint: &'static str§hint_forward: &'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.