pub struct FunctionBreakpoint {
pub name: String,
pub condition: Option<String>,
pub hit_condition: Option<String>,
/* private fields */
}
Expand description
Properties of a breakpoint passed to the setFunctionBreakpoints request.
Fields§
§name: String
The name of the function.
condition: Option<String>
An optional expression for conditional breakpoints.
It is only honored by a debug adapter if the capability ‘supportsConditionalBreakpoints’ is true.
hit_condition: Option<String>
An optional expression that controls how many hits of the breakpoint are ignored.
The backend is expected to interpret the expression as needed.
The attribute is only honored by a debug adapter if the capability ‘supportsHitConditionalBreakpoints’ is true.
Implementations§
Source§impl FunctionBreakpoint
impl FunctionBreakpoint
Sourcepub fn builder() -> FunctionBreakpointBuilder<((), (), ())>
pub fn builder() -> FunctionBreakpointBuilder<((), (), ())>
Create a builder for building FunctionBreakpoint
.
On the builder, call .name(...)
, .condition(...)
(optional), .hit_condition(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of FunctionBreakpoint
.
Trait Implementations§
Source§impl Clone for FunctionBreakpoint
impl Clone for FunctionBreakpoint
Source§fn clone(&self) -> FunctionBreakpoint
fn clone(&self) -> FunctionBreakpoint
Returns a copy 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 FunctionBreakpoint
impl Debug for FunctionBreakpoint
Source§impl<'de> Deserialize<'de> for FunctionBreakpoint
impl<'de> Deserialize<'de> for FunctionBreakpoint
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
Source§impl PartialEq for FunctionBreakpoint
impl PartialEq for FunctionBreakpoint
Source§impl Serialize for FunctionBreakpoint
impl Serialize for FunctionBreakpoint
impl Eq for FunctionBreakpoint
impl StructuralPartialEq for FunctionBreakpoint
Auto Trait Implementations§
impl Freeze for FunctionBreakpoint
impl RefUnwindSafe for FunctionBreakpoint
impl Send for FunctionBreakpoint
impl Sync for FunctionBreakpoint
impl Unpin for FunctionBreakpoint
impl UnwindSafe for FunctionBreakpoint
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
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
Compare self to
key
and return true
if they are equal.