UIStrings

Struct UIStrings 

Source
pub struct UIStrings;
Expand description

Centralized UI strings for internationalization support

Implementations§

Source§

impl UIStrings

Source

pub const SOURCE_PANEL_TITLE: &'static str = "Source Code"

Source

pub const EBPF_PANEL_TITLE: &'static str = "eBPF Output"

Source

pub const COMMAND_PANEL_TITLE: &'static str = "Interactive Command"

Source

pub const INPUT_MODE: &'static str = "INPUT"

Source

pub const COMMAND_MODE: &'static str = "COMMAND"

Source

pub const SCRIPT_MODE: &'static str = "SCRIPT"

Source

pub const GHOSTSCOPE_PROMPT: &'static str = "(ghostscope) "

Source

pub const SEARCH_PROMPT: &'static str = "Search: "

Source

pub const FILE_SEARCH_PROMPT: &'static str = "File: "

Source

pub const LOADING: &'static str = "Loading..."

Source

pub const COMPILING: &'static str = "Compiling and loading script..."

Source

pub const SCRIPT_CANCELLED: &'static str = "Script input cancelled"

Source

pub const UNKNOWN_COMMAND: &'static str = "Unknown command"

Source

pub const HELP_TEXT: &'static str = r#"Available commands: help - Show this help message trace - Start tracing a function/line/address (enters script mode) attach - Attach to a process by PID detach - Detach from current process quit - Exit ghostscope exit - Exit ghostscope"#

Source

pub const SOURCE_FILES_HEADER: &'static str = "Source Files by Module"

Source

pub const NO_SOURCE_FILES: &'static str = "No source files found."

Source

pub const SHARED_LIBRARIES_HEADER: &'static str = "Shared Libraries"

Source

pub const NO_SHARED_LIBRARIES: &'static str = "No shared libraries found."

Source

pub const SHARED_LIB_TABLE_HEADER: &'static str = "From To Syms Read Debug Read Shared Object Library"

Source

pub const NO_DEBUG_INFO_WARNING: &'static str = "has no DWARF debug information"

Source

pub const SCRIPT_TARGET_PREFIX: &'static str = "Script for target: "

Source

pub const SCRIPT_SEPARATOR: &'static str = "─"

Source

pub const TRACE_STATUS_HEADER: &'static str = "Trace Status"

Source

pub const NO_TRACES_FOUND: &'static str = "No traces found."

Source

pub const TRACE_DETAILS_HEADER: &'static str = "Trace Details:"

Source

pub const ERROR_PREFIX: &'static str = "✗"

Source

pub const SUCCESS_PREFIX: &'static str = "✅"

Source

pub const WARNING_PREFIX: &'static str = "⚠️"

Source

pub const INFO_PREFIX: &'static str = "ℹ️"

Source

pub const PROGRESS_PREFIX: &'static str = "⏳"

Source

pub const ERROR_PREFIX_ASCII: &'static str = "[ERROR]"

Source

pub const SUCCESS_PREFIX_ASCII: &'static str = "[OK]"

Source

pub const WARNING_PREFIX_ASCII: &'static str = "[WARN]"

Source

pub const INFO_PREFIX_ASCII: &'static str = "[INFO]"

Source

pub const PROGRESS_PREFIX_ASCII: &'static str = "[...]"

Source

pub const SCRIPT_SUCCESS_EMOJI: &'static str = "✅"

Source

pub const SCRIPT_ERROR_EMOJI: &'static str = "❌"

Source

pub const SCRIPT_PARTIAL_EMOJI: &'static str = "⚠️"

Source

pub const SCRIPT_COMPILING_EMOJI: &'static str = "🔄"

Source

pub const TARGET_EMOJI: &'static str = "🎯"

Source

pub const BINARY_EMOJI: &'static str = "📦"

Source

pub const ADDRESS_EMOJI: &'static str = "📍"

Source

pub const LINE_EMOJI: &'static str = "📝"

Source

pub const FILE_EMOJI: &'static str = "📄"

Source

pub const FUNCTION_EMOJI: &'static str = "🔧"

Source

pub const VARIABLE_EMOJI: &'static str = "💾"

Source

pub const PROBE_EMOJI: &'static str = "🔗"

Source

pub const DISABLED_EMOJI: &'static str = "⏸️"

Source

pub const SKIPPED_EMOJI: &'static str = "⏭️"

Source

pub const ACTIVE_EMOJI: &'static str = "🟢"

Source

pub const FAILED_EMOJI: &'static str = "🔴"

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more