RuntimeStatus

Enum RuntimeStatus 

Source
pub enum RuntimeStatus {
Show 43 variants DwarfLoadingStarted, DwarfLoadingCompleted { symbols_count: usize, }, DwarfLoadingFailed(String), ScriptCompilationCompleted { details: ScriptCompilationDetails, }, UprobeAttached { function: String, address: u64, }, UprobeDetached { function: String, }, SourceCodeLoaded(SourceCodeInfo), SourceCodeLoadFailed(String), TraceEnabled { trace_id: u32, }, TraceDisabled { trace_id: u32, }, AllTracesEnabled { count: usize, error: Option<String>, }, AllTracesDisabled { count: usize, error: Option<String>, }, TraceEnableFailed { trace_id: u32, error: String, }, TraceDisableFailed { trace_id: u32, error: String, }, TraceDeleted { trace_id: u32, }, AllTracesDeleted { count: usize, error: Option<String>, }, TraceDeleteFailed { trace_id: u32, error: String, }, InfoFunctionResult { target: String, info: TargetDebugInfo, verbose: bool, }, InfoFunctionFailed { target: String, error: String, }, InfoLineResult { target: String, info: TargetDebugInfo, verbose: bool, }, InfoLineFailed { target: String, error: String, }, InfoAddressResult { target: String, info: TargetDebugInfo, verbose: bool, }, InfoAddressFailed { target: String, error: String, }, TraceInfo { trace_id: u32, target: String, status: TraceStatus, pid: Option<u32>, binary: String, script_preview: Option<String>, pc: u64, }, TraceInfoAll { summary: TraceSummaryInfo, traces: Vec<TraceDetailInfo>, }, TraceInfoFailed { trace_id: u32, error: String, }, FileInfo { groups: Vec<SourceFileGroup>, }, FileInfoFailed { error: String, }, TracesSaved { filename: String, saved_count: usize, total_count: usize, }, TracesSaveFailed { error: String, }, TracesLoaded { filename: String, total_count: usize, success_count: usize, failed_count: usize, disabled_count: usize, details: Vec<TraceLoadDetail>, }, TracesLoadFailed { filename: String, error: String, }, ShareInfo { libraries: Vec<SharedLibraryInfo>, }, ShareInfoFailed { error: String, }, ExecutableFileInfo { file_path: String, file_type: String, entry_point: Option<u64>, has_symbols: bool, has_debug_info: bool, debug_file_path: Option<String>, text_section: Option<SectionInfo>, data_section: Option<SectionInfo>, mode_description: String, }, ExecutableFileInfoFailed { error: String, }, DwarfModuleDiscovered { module_path: String, total_modules: usize, }, DwarfModuleLoadingStarted { module_path: String, current: usize, total: usize, }, DwarfModuleLoadingCompleted { module_path: String, stats: ModuleLoadingStats, current: usize, total: usize, }, DwarfModuleLoadingFailed { module_path: String, error: String, current: usize, total: usize, }, SrcPathInfo { info: SourcePathInfo, }, SrcPathUpdated { message: String, }, SrcPathFailed { error: String, },
}

Variants§

§

DwarfLoadingStarted

§

DwarfLoadingCompleted

Fields

§symbols_count: usize
§

DwarfLoadingFailed(String)

§

ScriptCompilationCompleted

§

UprobeAttached

Fields

§function: String
§address: u64
§

UprobeDetached

Fields

§function: String
§

SourceCodeLoaded(SourceCodeInfo)

§

SourceCodeLoadFailed(String)

§

TraceEnabled

Fields

§trace_id: u32
§

TraceDisabled

Fields

§trace_id: u32
§

AllTracesEnabled

Fields

§count: usize
§

AllTracesDisabled

Fields

§count: usize
§

TraceEnableFailed

Fields

§trace_id: u32
§error: String
§

TraceDisableFailed

Fields

§trace_id: u32
§error: String
§

TraceDeleted

Fields

§trace_id: u32
§

AllTracesDeleted

Fields

§count: usize
§

TraceDeleteFailed

Fields

§trace_id: u32
§error: String
§

InfoFunctionResult

Fields

§target: String
§verbose: bool
§

InfoFunctionFailed

Fields

§target: String
§error: String
§

InfoLineResult

Fields

§target: String
§verbose: bool
§

InfoLineFailed

Fields

§target: String
§error: String
§

InfoAddressResult

Fields

§target: String
§verbose: bool
§

InfoAddressFailed

Fields

§target: String
§error: String
§

TraceInfo

Detailed info for a trace (summary + PC)

Fields

§trace_id: u32
§target: String
§binary: String
§script_preview: Option<String>
§pc: u64
§

TraceInfoAll

All trace info with structured data for UI rendering

§

TraceInfoFailed

Failed to get info for a specific trace

Fields

§trace_id: u32
§error: String
§

FileInfo

Source file information response (grouped by module)

Fields

§

FileInfoFailed

Failed to get file information

Fields

§error: String
§

TracesSaved

Traces saved to file successfully

Fields

§filename: String
§saved_count: usize
§total_count: usize
§

TracesSaveFailed

Failed to save traces

Fields

§error: String
§

TracesLoaded

Traces loaded from file successfully

Fields

§filename: String
§total_count: usize
§success_count: usize
§failed_count: usize
§disabled_count: usize
§

TracesLoadFailed

Failed to load traces

Fields

§filename: String
§error: String
§

ShareInfo

Shared library information response

Fields

§

ShareInfoFailed

Failed to get shared library information

Fields

§error: String
§

ExecutableFileInfo

Executable file information response

Fields

§file_path: String
§file_type: String
§entry_point: Option<u64>
§has_symbols: bool
§has_debug_info: bool
§debug_file_path: Option<String>
§text_section: Option<SectionInfo>
§data_section: Option<SectionInfo>
§mode_description: String
§

ExecutableFileInfoFailed

Failed to get executable file information

Fields

§error: String
§

DwarfModuleDiscovered

Fields

§module_path: String
§total_modules: usize
§

DwarfModuleLoadingStarted

Fields

§module_path: String
§current: usize
§total: usize
§

DwarfModuleLoadingCompleted

Fields

§module_path: String
§current: usize
§total: usize
§

DwarfModuleLoadingFailed

Fields

§module_path: String
§error: String
§current: usize
§total: usize
§

SrcPathInfo

Fields

§

SrcPathUpdated

Fields

§message: String
§

SrcPathFailed

Fields

§error: String

Implementations§

Source§

impl RuntimeStatus

Source

pub fn format_trace_info(&self) -> Option<String>

Format TraceInfo for enhanced display

Source

pub fn format_trace_info_styled(&self) -> Option<Vec<Line<'static>>>

Styled version of TraceInfo for display

Trait Implementations§

Source§

impl Clone for RuntimeStatus

Source§

fn clone(&self) -> RuntimeStatus

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RuntimeStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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