pub struct StoppedEventBody {
    pub all_threads_stopped: Option<bool>,
    pub description: Option<String>,
    pub hit_breakpoint_ids: Option<Vec<i64>>,
    pub preserve_focus_hint: Option<bool>,
    pub reason: String,
    pub text: Option<String>,
    pub thread_id: Option<i64>,
}

Fields

all_threads_stopped: Option<bool>

If ‘allThreadsStopped’ is true, a debug adapter can announce that all threads have stopped.

  • The client should use this information to enable that all threads can be expanded to access their stacktraces.
  • If the attribute is missing or false, only the thread with the given threadId can be expanded.
description: Option<String>

The full reason for the event, e.g. ‘Paused on exception’. This string is shown in the UI as is and must be translated.

hit_breakpoint_ids: Option<Vec<i64>>

Ids of the breakpoints that triggered the event. In most cases there will be only a single breakpoint but here are some examples for multiple breakpoints:

  • Different types of breakpoints map to the same location.
  • Multiple source breakpoints get collapsed to the same instruction by the compiler/runtime.
  • Multiple function breakpoints with different function names map to the same location.
preserve_focus_hint: Option<bool>

A value of true hints to the frontend that this event should not change the focus.

reason: String

The reason for the event. For backward compatibility this string is shown in the UI if the ‘description’ attribute is missing (but it must not be translated).

text: Option<String>

Additional information. E.g. if reason is ‘exception’, text contains the exception name. This string is shown in the UI.

thread_id: Option<i64>

The thread which was stopped.

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