Trait benfred_read_process_memory::TryIntoProcessHandle [−][src]
pub trait TryIntoProcessHandle { fn try_into_process_handle(&self) -> Result<ProcessHandle>; }
Attempt to get a process handle for a running process.
This operation is not guaranteed to succeed. Specifically, on Windows
OpenProcess
may fail, and on OS X task_for_pid
will generally fail
unless run as root, and even then it may fail when called on certain
programs.
This should be dropped in favor of TryInto when that stabilizes: https://github.com/rust-lang/rust/issues/33417
Required Methods
fn try_into_process_handle(&self) -> Result<ProcessHandle>
Attempt to get a ProcessHandle
from self
.
Implementations on Foreign Types
impl TryIntoProcessHandle for DWORD
[src]
impl TryIntoProcessHandle for DWORD
A Pid
can be turned into a ProcessHandle
with OpenProcess
.
fn try_into_process_handle(&self) -> Result<ProcessHandle>
[src]
fn try_into_process_handle(&self) -> Result<ProcessHandle>
impl TryIntoProcessHandle for Child
[src]
impl TryIntoProcessHandle for Child
A std::process::Child
has a HANDLE
from calling CreateProcess
.
fn try_into_process_handle(&self) -> Result<ProcessHandle>
[src]
fn try_into_process_handle(&self) -> Result<ProcessHandle>
Implementors
impl TryIntoProcessHandle for ProcessHandle