#[non_exhaustive]pub enum ProcessAccess {
QueryLimited,
Synchronize,
QueryLimitedAndSynchronize,
Terminate,
AsCreated,
}Expand description
The rights a Process handle carries.
Each variant is a fixed rights set. Process::open cannot request
ProcessAccess::AsCreated: full access is only available on a process
this one created, so a reused PID can never be reopened with it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
QueryLimited
PROCESS_QUERY_LIMITED_INFORMATION: identity and exit-code queries.
Synchronize
SYNCHRONIZE: waiting for exit.
QueryLimitedAndSynchronize
Identity queries and waiting for exit.
Terminate
Identity queries, waiting for exit, and PROCESS_TERMINATE.
AsCreated
The rights the creating call granted: everything.
Trait Implementations§
Source§impl Clone for ProcessAccess
impl Clone for ProcessAccess
impl Copy for ProcessAccess
Source§impl Debug for ProcessAccess
impl Debug for ProcessAccess
impl Eq for ProcessAccess
Source§impl PartialEq for ProcessAccess
impl PartialEq for ProcessAccess
impl StructuralPartialEq for ProcessAccess
Auto Trait Implementations§
impl Forget for ProcessAccess
impl Freeze for ProcessAccess
impl Move for ProcessAccess
impl RefUnwindSafe for ProcessAccess
impl Send for ProcessAccess
impl Sync for ProcessAccess
impl Unpin for ProcessAccess
impl UnsafeUnpin for ProcessAccess
impl UnwindSafe for ProcessAccess
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