Skip to main content

Pending

Struct Pending 

Source
pub struct Pending { /* private fields */ }
Expand description

Represents a breakpoint event that needs to be processed by the tracer.

When a permanent breakpoint is hit we return a Pending value containing the breakpoint id (if assigned) and the address where it was hit. This allows the tracer to re-install or re-register the breakpoint as needed.

Implementations§

Source§

impl Pending

Source

pub fn new(id: Option<u64>, address: u64) -> Self

Create a new Pending event.

§Arguments
  • id - Optional breakpoint id assigned by the manager.
  • address - Address where the breakpoint was hit.
§Returns

A newly-created Pending event.

Source

pub fn id(&self) -> Option<u64>

Return the optional breakpoint id associated with this pending event.

§Returns

The optional breakpoint id assigned by the manager, or None if the breakpoint was not registered.

Source

pub fn address(&self) -> u64

Return the address where the breakpoint was hit.

§Returns

The instruction address where the breakpoint occurred.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.