pub struct Backend { /* private fields */ }Implementations§
Source§impl Backend
impl Backend
pub fn new(pid: pid_t) -> Self
pub fn process_reader(&self) -> ProcessReader
pub fn stop_process(&self) -> Result<(), Error>
pub fn continue_process(&self) -> Result<(), Error>
pub fn suspend_thread(&self, tid: pid_t) -> Result<(), Error>
pub fn resume_thread(&self, tid: pid_t) -> Result<(), Error>
pub fn map_module_into_memory( &self, path: &CStr, offset: u64, ) -> Result<MappedModuleMemoryReader, Error>
pub fn stat_file(&self, path: &CStr) -> Result<stat, Error>
pub fn read_file(&self, path: &CStr) -> Result<FileReader, Error>
pub fn read_dir(&self, path: &CStr) -> Result<DirReader, Error>
pub fn read_link(&self, path: &CStr, buf: &mut [u8]) -> Result<usize, Error>
pub fn get_gen_regs(&self, tid: pid_t) -> Result<GenRegs, Error>
pub fn get_fp_regs(&self, tid: pid_t) -> Result<FpRegs, Error>
pub fn ptrace_peekuser(&self, pid: pid_t, addr: usize) -> Result<[u8; 8], Error>
pub fn process_reader_for_virtual_mem(&self) -> ProcessReader
pub fn process_reader_for_file(&self) -> Result<ProcessReader, Error>
pub fn process_reader_for_ptrace(&self) -> ProcessReader
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Backend
impl !RefUnwindSafe for Backend
impl !Sync for Backend
impl Send for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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