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
DwarfLoadingFailed(String)
ScriptCompilationCompleted
Fields
§
details: ScriptCompilationDetailsUprobeAttached
UprobeDetached
SourceCodeLoaded(SourceCodeInfo)
SourceCodeLoadFailed(String)
TraceEnabled
TraceDisabled
AllTracesEnabled
AllTracesDisabled
TraceEnableFailed
TraceDisableFailed
TraceDeleted
AllTracesDeleted
TraceDeleteFailed
InfoFunctionResult
InfoFunctionFailed
InfoLineResult
InfoLineFailed
InfoAddressResult
InfoAddressFailed
TraceInfo
Detailed info for a trace (summary + PC)
Fields
§
status: TraceStatusTraceInfoAll
All trace info with structured data for UI rendering
TraceInfoFailed
Failed to get info for a specific trace
FileInfo
Source file information response (grouped by module)
Fields
§
groups: Vec<SourceFileGroup>FileInfoFailed
Failed to get file information
TracesSaved
Traces saved to file successfully
TracesSaveFailed
Failed to save traces
TracesLoaded
Traces loaded from file successfully
Fields
§
details: Vec<TraceLoadDetail>TracesLoadFailed
Failed to load traces
Shared library information response
Failed to get shared library information
ExecutableFileInfo
Executable file information response
ExecutableFileInfoFailed
Failed to get executable file information
DwarfModuleDiscovered
DwarfModuleLoadingStarted
DwarfModuleLoadingCompleted
DwarfModuleLoadingFailed
SrcPathInfo
Fields
§
info: SourcePathInfoSrcPathUpdated
SrcPathFailed
Implementations§
Source§impl RuntimeStatus
impl RuntimeStatus
Sourcepub fn format_trace_info(&self) -> Option<String>
pub fn format_trace_info(&self) -> Option<String>
Format TraceInfo for enhanced display
Sourcepub fn format_trace_info_styled(&self) -> Option<Vec<Line<'static>>>
pub fn format_trace_info_styled(&self) -> Option<Vec<Line<'static>>>
Styled version of TraceInfo for display
Trait Implementations§
Source§impl Clone for RuntimeStatus
impl Clone for RuntimeStatus
Source§fn clone(&self) -> RuntimeStatus
fn clone(&self) -> RuntimeStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeStatus
impl RefUnwindSafe for RuntimeStatus
impl Send for RuntimeStatus
impl Sync for RuntimeStatus
impl Unpin for RuntimeStatus
impl UnwindSafe for RuntimeStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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