pub enum ParsedInstruction {
PrintString {
content: String,
},
PrintVariable {
name: String,
type_encoding: TypeKind,
formatted_value: String,
raw_data: Vec<u8>,
},
ExprError {
expr: String,
error_code: u8,
flags: u8,
failing_addr: u64,
},
PrintComplexFormat {
formatted_output: String,
},
PrintComplexVariable {
name: String,
access_path: String,
type_index: u16,
formatted_value: String,
raw_data: Vec<u8>,
},
Backtrace {
depth: u8,
},
EndInstruction {
total_instructions: u16,
execution_status: u8,
},
}Expand description
Parsed instruction from trace event
Variants§
PrintString
PrintVariable
ExprError
Structured runtime expression error/warning
PrintComplexFormat
PrintComplexVariable
Backtrace
EndInstruction
Implementations§
Source§impl ParsedInstruction
impl ParsedInstruction
Sourcepub fn to_display_string(&self) -> String
pub fn to_display_string(&self) -> String
Return a display string for this instruction
Sourcepub fn instruction_type(&self) -> String
pub fn instruction_type(&self) -> String
Return the instruction type as a string
Trait Implementations§
Source§impl Clone for ParsedInstruction
impl Clone for ParsedInstruction
Source§fn clone(&self) -> ParsedInstruction
fn clone(&self) -> ParsedInstruction
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 moreSource§impl Debug for ParsedInstruction
impl Debug for ParsedInstruction
Source§impl<'de> Deserialize<'de> for ParsedInstruction
impl<'de> Deserialize<'de> for ParsedInstruction
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ParsedInstruction
impl RefUnwindSafe for ParsedInstruction
impl Send for ParsedInstruction
impl Sync for ParsedInstruction
impl Unpin for ParsedInstruction
impl UnwindSafe for ParsedInstruction
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