pub struct StoppedEventBody {
pub reason: StoppedEventReason,
pub description: Option<String>,
pub thread_id: Option<i32>,
pub preserve_focus_hint: bool,
pub text: Option<String>,
pub all_threads_stopped: bool,
pub hit_breakpoint_ids: Vec<i32>,
/* private fields */
}
Fields§
§reason: StoppedEventReason
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).
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.
thread_id: Option<i32>
The thread which was stopped.
preserve_focus_hint: bool
A value of true hints to the frontend that this event should not change the focus.
text: Option<String>
Additional information. E.g. if reason is ‘exception’, text contains the exception name. This string is shown in the UI.
all_threads_stopped: 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.
hit_breakpoint_ids: Vec<i32>
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.
Implementations§
Source§impl StoppedEventBody
impl StoppedEventBody
Sourcepub fn builder() -> StoppedEventBodyBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> StoppedEventBodyBuilder<((), (), (), (), (), (), ())>
Create a builder for building StoppedEventBody
.
On the builder, call .reason(...)
, .description(...)
(optional), .thread_id(...)
(optional), .preserve_focus_hint(...)
(optional), .text(...)
(optional), .all_threads_stopped(...)
(optional), .hit_breakpoint_ids(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of StoppedEventBody
.
Trait Implementations§
Source§impl Clone for StoppedEventBody
impl Clone for StoppedEventBody
Source§fn clone(&self) -> StoppedEventBody
fn clone(&self) -> StoppedEventBody
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for StoppedEventBody
impl Debug for StoppedEventBody
Source§impl<'de> Deserialize<'de> for StoppedEventBody
impl<'de> Deserialize<'de> for StoppedEventBody
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>,
Source§impl From<StoppedEventBody> for Event
impl From<StoppedEventBody> for Event
Source§fn from(body: StoppedEventBody) -> Self
fn from(body: StoppedEventBody) -> Self
Source§impl From<StoppedEventBody> for ProtocolMessageContent
impl From<StoppedEventBody> for ProtocolMessageContent
Source§fn from(body: StoppedEventBody) -> Self
fn from(body: StoppedEventBody) -> Self
Source§impl PartialEq for StoppedEventBody
impl PartialEq for StoppedEventBody
Source§impl Serialize for StoppedEventBody
impl Serialize for StoppedEventBody
impl Eq for StoppedEventBody
impl StructuralPartialEq for StoppedEventBody
Auto Trait Implementations§
impl Freeze for StoppedEventBody
impl RefUnwindSafe for StoppedEventBody
impl Send for StoppedEventBody
impl Sync for StoppedEventBody
impl Unpin for StoppedEventBody
impl UnwindSafe for StoppedEventBody
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.