pub struct Breakpoint<Key, Tag>{ /* private fields */ }Expand description
A breakpoint definition.
A breakpoint is defined by its address context, view, and optional metadata in the form of a key and tag.
If the breakpoint is global, it will be triggered regardless of the
translation root, e.g., only AddressContext::va will be considered
during breakpoint matching.
Implementations§
Source§impl<Key, Tag> Breakpoint<Key, Tag>
impl<Key, Tag> Breakpoint<Key, Tag>
Sourcepub fn ctx(&self) -> AddressContext
pub fn ctx(&self) -> AddressContext
Returns the address context of the breakpoint.
If the breakpoint is global, only AddressContext::va will be
considered during breakpoint matching.
Sourcepub fn global(&self) -> bool
pub fn global(&self) -> bool
Returns whether the breakpoint is global.
A global breakpoint will be triggered regardless of the translation
root, e.g., only AddressContext::va will be considered during
breakpoint matching.
Source§impl Breakpoint<(), ()>
impl Breakpoint<(), ()>
Sourcepub fn new(ctx: impl Into<AddressContext>, view: View) -> BreakpointBuilder
pub fn new(ctx: impl Into<AddressContext>, view: View) -> BreakpointBuilder
Creates a new breakpoint builder.
Trait Implementations§
Source§impl<Key, Tag> Clone for Breakpoint<Key, Tag>
impl<Key, Tag> Clone for Breakpoint<Key, Tag>
Source§fn clone(&self) -> Breakpoint<Key, Tag>
fn clone(&self) -> Breakpoint<Key, Tag>
Returns a duplicate 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<Key, Tag> Debug for Breakpoint<Key, Tag>
impl<Key, Tag> Debug for Breakpoint<Key, Tag>
Source§impl<Key, Tag> From<BreakpointBuilder> for Breakpoint<Key, Tag>
impl<Key, Tag> From<BreakpointBuilder> for Breakpoint<Key, Tag>
Source§fn from(value: BreakpointBuilder) -> Self
fn from(value: BreakpointBuilder) -> Self
Converts to this type from the input type.
Source§impl<Key, Tag> Hash for Breakpoint<Key, Tag>
impl<Key, Tag> Hash for Breakpoint<Key, Tag>
Source§impl<Key, Tag> Ord for Breakpoint<Key, Tag>
impl<Key, Tag> Ord for Breakpoint<Key, Tag>
Source§fn cmp(&self, other: &Breakpoint<Key, Tag>) -> Ordering
fn cmp(&self, other: &Breakpoint<Key, Tag>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Key, Tag> PartialEq for Breakpoint<Key, Tag>
impl<Key, Tag> PartialEq for Breakpoint<Key, Tag>
Source§impl<Key, Tag> PartialOrd for Breakpoint<Key, Tag>
impl<Key, Tag> PartialOrd for Breakpoint<Key, Tag>
impl<Key, Tag> Copy for Breakpoint<Key, Tag>
impl<Key, Tag> Eq for Breakpoint<Key, Tag>
impl<Key, Tag> StructuralPartialEq for Breakpoint<Key, Tag>
Auto Trait Implementations§
impl<Key, Tag> Freeze for Breakpoint<Key, Tag>
impl<Key, Tag> RefUnwindSafe for Breakpoint<Key, Tag>where
Key: RefUnwindSafe,
Tag: RefUnwindSafe,
impl<Key, Tag> Send for Breakpoint<Key, Tag>
impl<Key, Tag> Sync for Breakpoint<Key, Tag>
impl<Key, Tag> Unpin for Breakpoint<Key, Tag>
impl<Key, Tag> UnwindSafe for Breakpoint<Key, Tag>where
Key: UnwindSafe,
Tag: UnwindSafe,
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> Comparable<K> for Q
impl<Q, K> Comparable<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.