Struct Process

Source
pub struct Process { /* private fields */ }

Implementations§

Source§

impl Process

Source

pub fn is_multithread_capable(&self) -> bool

Source

pub fn get_initial_thread(&self) -> Arc<Mutex<Thread>>

Source

pub fn threads(&self) -> Iter<'_, Arc<Mutex<Thread>>>

Source

pub fn get_pid(&self) -> u32

Source

pub fn get_architecture(&self) -> Architecture

Source

pub fn is_running(&self) -> bool

Source

pub fn is_terminated(&self) -> bool

Source

pub fn set_user_data(&mut self, user_data: Box<dyn UserData>)

Source

pub fn get_user_data(&mut self) -> Option<&mut Box<dyn UserData>>

Source

pub fn continue_process(&mut self) -> Result<()>

Source

pub fn create_breakpoint(&mut self, addr: u64) -> Result<()>

Source

pub fn install_breakpoint(&mut self, addr: u64) -> Result<()>

Source

pub fn remove_breakpoint(&mut self, addr: u64) -> Result<()>

Source

pub fn delete_breakpoint(&mut self, addr: u64) -> Result<()>

Source

pub fn refresh_state(&mut self) -> Result<()>

Source

pub fn write_mem(&mut self, data: &[u8], addr: u64) -> Result<()>

Source

pub fn read_mem(&mut self, size: u32, addr: u64) -> Result<Vec<u8>>

Trait Implementations§

Source§

impl Debug for Process

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Process

Source§

fn eq(&self, other: &Process) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

§

impl Freeze for Process

§

impl !RefUnwindSafe for Process

§

impl !Send for Process

§

impl !Sync for Process

§

impl Unpin for Process

§

impl !UnwindSafe for Process

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> Downcast for T
where T: Any,

Source§

fn as_any(&self) -> &(dyn Any + 'static)

Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

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.