Struct livesplit_wrapper::Process
source · [−]pub struct Process(_);Expand description
A handle representing an attached process that can be used to read its memory.
Implementations
sourceimpl Process
impl Process
sourcepub fn read<T: Pod>(&self, addr: Address) -> Result<T>
pub fn read<T: Pod>(&self, addr: Address) -> Result<T>
Reads a single value from the attached processes memory space. To be
able to use this with your own types, they need to implement Pod
(it’s implemented for the numeric types and fixed size arrays by
default).
sourcepub fn module(&self, name: &str) -> Option<Address>
pub fn module(&self, name: &str) -> Option<Address>
Search for a module (aka dynamic library) loaded by the attached process by name and return its base address.
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
