pub struct ProcessHandle(/* private fields */);
Expand description
ProcessHandle
s are needed to establish unsealed channels (i.e. channels that can transmit OS resources).
§Security
You should not allow a less trusted process to either hold the ProcessHandle
of or an unsealed channel to a more trusted process unless
absolutely necessary. On some platforms ProcessHandle
s and unsealed channels allow the holder to interfere with the other process.
Implementations§
Trait Implementations§
Source§impl Debug for ProcessHandle
impl Debug for ProcessHandle
Source§impl<'de> Deserialize<'de> for ProcessHandle
impl<'de> Deserialize<'de> for ProcessHandle
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl ProcessHandleExt for ProcessHandle
impl ProcessHandleExt for ProcessHandle
Source§fn from_windows_handle<H>(handle: &H) -> Result<Self>where
H: AsRawHandle,
fn from_windows_handle<H>(handle: &H) -> Result<Self>where
H: AsRawHandle,
Creates a ProcessHandle
from a raw Windows process handle.
The handle must have the PROCESS_DUP_HANDLE and PROCESS_QUERY_INFORMATION access rights. The handle need not stay open.
Source§unsafe fn from_windows_handle_raw(handle: HANDLE) -> Result<Self>
unsafe fn from_windows_handle_raw(handle: HANDLE) -> Result<Self>
Creates a ProcessHandle
from a raw Windows process handle.
The handle must have the PROCESS_DUP_HANDLE and PROCESS_QUERY_INFORMATION access rights. The handle need not stay open.
Auto Trait Implementations§
impl Freeze for ProcessHandle
impl RefUnwindSafe for ProcessHandle
impl Send for ProcessHandle
impl Sync for ProcessHandle
impl Unpin for ProcessHandle
impl UnwindSafe for ProcessHandle
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