pub struct StackFrame {
    pub can_restart: Option<bool>,
    pub column: i64,
    pub end_column: Option<i64>,
    pub end_line: Option<i64>,
    pub id: i64,
    pub instruction_pointer_reference: Option<String>,
    pub line: i64,
    pub module_id: Option<Value>,
    pub name: String,
    pub presentation_hint: Option<String>,
    pub source: Option<Source>,
}
Expand description

A Stackframe contains the source location.

Fields

can_restart: Option<bool>

Indicates whether this frame can be restarted with the ‘restart’ request. Clients should only use this if the debug adapter supports the ‘restart’ request (capability ‘supportsRestartRequest’ is true).

column: i64

The column within the line. If source is null or doesn’t exist, column is 0 and must be ignored.

end_column: Option<i64>

An optional end column of the range covered by the stack frame.

end_line: Option<i64>

An optional end line of the range covered by the stack frame.

id: i64

An identifier for the stack frame. It must be unique across all threads. This id can be used to retrieve the scopes of the frame with the ‘scopesRequest’ or to restart the execution of a stackframe.

instruction_pointer_reference: Option<String>

Optional memory reference for the current instruction pointer in this frame.

line: i64

The line within the file of the frame. If source is null or doesn’t exist, line is 0 and must be ignored.

module_id: Option<Value>

The module associated with this frame, if any.

name: String

The name of the stack frame, typically a method name.

presentation_hint: Option<String>

An optional hint for how to present this frame in the UI. A value of ‘label’ can be used to indicate that the frame is an artificial frame that is used as a visual label or separator. A value of ‘subtle’ can be used to change the appearance of a frame in a ‘subtle’ way.

source: Option<Source>

The optional source of the frame.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

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

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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

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

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

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