Struct rbspy_testdata::CoreDump
source · pub struct CoreDump { /* private fields */ }
Expand description
Allows testing offline with a core dump of a Ruby process.
Implementations§
Trait Implementations§
source§impl ProcessMemory for CoreDump
impl ProcessMemory for CoreDump
source§fn read(&self, addr: usize, buf: &mut [u8]) -> Result<(), ProcessError>
fn read(&self, addr: usize, buf: &mut [u8]) -> Result<(), ProcessError>
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 Freeze for CoreDump
impl RefUnwindSafe for CoreDump
impl Send for CoreDump
impl Sync for CoreDump
impl Unpin for CoreDump
impl UnwindSafe for CoreDump
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