pub struct ProcessMemoryAllocation<P: AsRef<Process>> { /* private fields */ }Available on crate feature
process only.Implementations§
Source§impl<P: AsRef<Process>> ProcessMemoryAllocation<P>
impl<P: AsRef<Process>> ProcessMemoryAllocation<P>
Sourcepub fn with_data<D: ?Sized>(
process: P,
skip_reserve: bool,
data: &D,
) -> Result<Self>
pub fn with_data<D: ?Sized>( process: P, skip_reserve: bool, data: &D, ) -> Result<Self>
Allocates memory in another process and writes the raw bytes of *data into it.
The memory has to be reserved first before it can be committed and used. Skipping reserving the memory will try to use previously reserved memory, if available.
§Panics
Will panic if the size of data is zero.
Trait Implementations§
Auto Trait Implementations§
impl<P> Freeze for ProcessMemoryAllocation<P>where
P: Freeze,
impl<P> RefUnwindSafe for ProcessMemoryAllocation<P>where
P: RefUnwindSafe,
impl<P> !Send for ProcessMemoryAllocation<P>
impl<P> !Sync for ProcessMemoryAllocation<P>
impl<P> Unpin for ProcessMemoryAllocation<P>where
P: Unpin,
impl<P> UnwindSafe for ProcessMemoryAllocation<P>where
P: UnwindSafe,
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