pub struct MockBackend { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for MockBackend
impl Clone for MockBackend
Source§fn clone(&self) -> MockBackend
fn clone(&self) -> MockBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MockBackend
impl Debug for MockBackend
Source§impl MemoryBackend for MockBackend
impl MemoryBackend for MockBackend
fn list_processes(&self) -> Result<Vec<ProcessInfo>>
fn process_by_pid(&self, pid: Pid) -> Result<ProcessInfo>
fn process_by_name(&self, name: &str) -> Result<ProcessInfo>
fn module_list(&self, pid: Pid) -> Result<Vec<ModuleInfo>>
fn module_by_name(&self, pid: Pid, name: &str) -> Result<ModuleInfo>
fn module_exports(&self, pid: Pid, module: &str) -> Result<Vec<(String, u64)>>
fn read(&self, pid: Pid, addr: u64, len: usize) -> Result<Vec<u8>>
fn write(&self, pid: Pid, addr: u64, data: &[u8]) -> Result<usize>
fn memory_map(&self, pid: Pid) -> Result<Vec<MemRegion>>
Auto Trait Implementations§
impl Freeze for MockBackend
impl RefUnwindSafe for MockBackend
impl Send for MockBackend
impl Sync for MockBackend
impl Unpin for MockBackend
impl UnsafeUnpin for MockBackend
impl UnwindSafe for MockBackend
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