Struct remoteprocess::Process
source · pub struct Process {
pub pid: Pid,
}
Fields§
§pid: Pid
Implementations§
source§impl Process
impl Process
pub fn new(pid: Pid) -> Result<Process, Error>
pub fn exe(&self) -> Result<String, Error>
pub fn cwd(&self) -> Result<String, Error>
pub fn cmdline(&self) -> Result<Vec<String>, Error>
pub fn lock(&self) -> Result<Lock, Error>
pub fn threads(&self) -> Result<Vec<Thread>, Error>
pub fn child_processes(&self) -> Result<Vec<(Pid, Pid)>, Error>
Trait Implementations§
source§impl ProcessMemory for Process
impl ProcessMemory for Process
source§fn read(&self, addr: usize, buf: &mut [u8]) -> Result<(), Error>
fn read(&self, addr: usize, buf: &mut [u8]) -> Result<(), Error>
Copies memory from another process into an already allocated
byte buffer
source§fn copy(&self, addr: usize, length: usize) -> Result<Vec<u8>, Error>
fn copy(&self, addr: usize, length: usize) -> Result<Vec<u8>, Error>
Copies a series of bytes from another process. Main difference
with ‘read’ is that this will allocate memory for you
source§fn copy_struct<T>(&self, addr: usize) -> Result<T, Error>
fn copy_struct<T>(&self, addr: usize) -> Result<T, Error>
Copies a structure from another process
Auto Trait Implementations§
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> 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