pub trait WriteableProcessBuffer: ReadableProcessBuffer {
    // Required method
    fn mut_enter<F, R>(&self, fun: F) -> Result<R, Error>
       where F: FnOnce(&WriteableProcessSlice) -> R;
}
Expand description

A readable and writeable region of userspace process memory.

This trait can be used to gain read-write access to memory regions wrapped in a ReadWriteProcessBuffer.

This is a supertrait of ReadableProcessBuffer, which features methods allowing mutable access.

Required Methods§

source

fn mut_enter<F, R>(&self, fun: F) -> Result<R, Error>
where F: FnOnce(&WriteableProcessSlice) -> R,

Applies a function to the mutable process slice reference pointed to by the ReadWriteProcessBuffer.

If the process is no longer alive and the memory has been reclaimed, this method must return Err(process::Error::NoSuchApp).

Default Process Buffer

A default instance of a process buffer must return Err(process::Error::NoSuchApp) without executing the passed closure.

Object Safety§

This trait is not object safe.

Implementors§