Skip to main content

Process

Struct Process 

Source
pub struct Process {
    pub pid: i32,
    pub maps: Vec<MemoryRegion>,
    pub executable_dir: Option<PathBuf>,
}

Fields§

§pid: i32§maps: Vec<MemoryRegion>§executable_dir: Option<PathBuf>

Trait Implementations§

Source§

impl ProcessTraits for Process

Source§

fn initialize( proc_name: &str, exclude: &[&str], ) -> Result<Process, ProcessError>

Initialize a Process struct Read more
Source§

fn find_process( proc_name: &str, exclude: &[&str], ) -> Result<Process, ProcessError>

Attemp to find a process Read more
Source§

fn read_regions(self) -> Result<Process, ProcessError>

Collect memory regions offsets into itself. Read more
Source§

fn read_signature<T: TryFrom<usize>>( &self, sign: &Signature, ) -> Result<T, ProcessError>

Source§

fn read<T: TryInto<usize>>( &self, addr: T, len: usize, buff: &mut [u8], ) -> Result<(), ProcessError>

Source§

fn read_uleb128<T: TryInto<usize>>(&self, addr: T) -> Result<u64, ProcessError>

Source§

fn read_string_with_limit_from_ptr<T: TryInto<usize>>( &self, addr: T, limit: usize, ) -> Result<String, ProcessError>

Source§

fn read_string_with_limit<T: TryInto<usize>>( &self, addr: T, limit: usize, ) -> Result<String, ProcessError>

Reads a C# string. For more info checkout ProcessTraits::read_string() Read more
Source§

fn read_string_from_ptr<T: TryInto<usize>>( &self, addr: T, ) -> Result<String, ProcessError>

Reads a C# string based on C# string structure Assumes passed addr is a pointer, so it’s gonna make additional pointer read. Read more
Source§

fn read_string<T: TryInto<usize>>( &self, addr: T, ) -> Result<String, ProcessError>

Reads a C# string based on C# string structure Assumes passed addr is not a pointer, so no additional pointer reads is gonna be made. Read more
Source§

fn read_i8<T: TryInto<usize>>(&self, addr: T) -> Result<i8, ProcessError>

Source§

fn read_i16<T: TryInto<usize>>(&self, addr: T) -> Result<i16, ProcessError>

Source§

fn read_i32<T: TryInto<usize>>(&self, addr: T) -> Result<i32, ProcessError>

Source§

fn read_i64<T: TryInto<usize>>(&self, addr: T) -> Result<i64, ProcessError>

Source§

fn read_i128<T: TryInto<usize>>(&self, addr: T) -> Result<i128, ProcessError>

Source§

fn read_u8<T: TryInto<usize>>(&self, addr: T) -> Result<u8, ProcessError>

Source§

fn read_u16<T: TryInto<usize>>(&self, addr: T) -> Result<u16, ProcessError>

Source§

fn read_u32<T: TryInto<usize>>(&self, addr: T) -> Result<u32, ProcessError>

Source§

fn read_u64<T: TryInto<usize>>(&self, addr: T) -> Result<u64, ProcessError>

Source§

fn read_u128<T: TryInto<usize>>(&self, addr: T) -> Result<u128, ProcessError>

Source§

fn read_f32<T: TryInto<usize>>(&self, addr: T) -> Result<f32, ProcessError>

Source§

fn read_f64<T: TryInto<usize>>(&self, addr: T) -> Result<f64, ProcessError>

Source§

fn read_i8_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<i8>, ) -> Result<(), ProcessError>

Source§

fn read_i16_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<i16>, ) -> Result<(), ProcessError>

Source§

fn read_i32_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<i32>, ) -> Result<(), ProcessError>

Source§

fn read_i64_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<i64>, ) -> Result<(), ProcessError>

Source§

fn read_i128_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<i128>, ) -> Result<(), ProcessError>

Source§

fn read_u8_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<u8>, ) -> Result<(), ProcessError>

Source§

fn read_u16_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<u16>, ) -> Result<(), ProcessError>

Source§

fn read_u32_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<u32>, ) -> Result<(), ProcessError>

Source§

fn read_u64_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<u64>, ) -> Result<(), ProcessError>

Source§

fn read_u128_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<u128>, ) -> Result<(), ProcessError>

Source§

fn read_f32_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<f32>, ) -> Result<(), ProcessError>

Source§

fn read_f64_array<T: TryInto<usize>>( &self, addr: T, buff: &mut Vec<f64>, ) -> Result<(), ProcessError>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.