pub struct Breakpoint {
pub id: Option<i32>,
pub verified: bool,
pub message: Option<String>,
pub source: Option<Source>,
pub line: Option<i32>,
pub column: Option<i32>,
pub end_line: Option<i32>,
pub end_column: Option<i32>,
pub instruction_reference: Option<String>,
pub offset: Option<i32>,
/* private fields */
}
Expand description
Information about a Breakpoint created in setBreakpoints, setFunctionBreakpoints, setInstructionBreakpoints, or setDataBreakpoints.
Fields§
§id: Option<i32>
An optional identifier for the breakpoint. It is needed if breakpoint events are used to update or remove breakpoints.
verified: bool
If true breakpoint could be set (but not necessarily at the desired location).
message: Option<String>
An optional message about the state of the breakpoint.
This is shown to the user and can be used to explain why a breakpoint could not be verified.
source: Option<Source>
The source where the breakpoint is located.
line: Option<i32>
The start line of the actual range covered by the breakpoint.
column: Option<i32>
An optional start column of the actual range covered by the breakpoint.
end_line: Option<i32>
An optional end line of the actual range covered by the breakpoint.
end_column: Option<i32>
An optional end column of the actual range covered by the breakpoint.
If no end line is given, then the end column is assumed to be in the start line.
instruction_reference: Option<String>
An optional memory reference to where the breakpoint is set.
offset: Option<i32>
An optional offset from the instruction reference.
This can be negative.
Implementations§
Source§impl Breakpoint
impl Breakpoint
Sourcepub fn builder() -> BreakpointBuilder<((), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> BreakpointBuilder<((), (), (), (), (), (), (), (), (), ())>
Create a builder for building Breakpoint
.
On the builder, call .id(...)
(optional), .verified(...)
, .message(...)
(optional), .source(...)
(optional), .line(...)
(optional), .column(...)
(optional), .end_line(...)
(optional), .end_column(...)
(optional), .instruction_reference(...)
(optional), .offset(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of Breakpoint
.
Trait Implementations§
Source§impl Clone for Breakpoint
impl Clone for Breakpoint
Source§fn clone(&self) -> Breakpoint
fn clone(&self) -> Breakpoint
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 Breakpoint
impl Debug for Breakpoint
Source§impl<'de> Deserialize<'de> for Breakpoint
impl<'de> Deserialize<'de> for Breakpoint
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 PartialEq for Breakpoint
impl PartialEq for Breakpoint
Source§impl Serialize for Breakpoint
impl Serialize for Breakpoint
impl Eq for Breakpoint
impl StructuralPartialEq for Breakpoint
Auto Trait Implementations§
impl Freeze for Breakpoint
impl RefUnwindSafe for Breakpoint
impl Send for Breakpoint
impl Sync for Breakpoint
impl Unpin for Breakpoint
impl UnwindSafe for Breakpoint
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.