Struct winproc::Access [−]
pub struct Access { /* fields omitted */ }
Windows process-related access permission flags.
Methods
impl Access
impl Access
pub const DELETE: Access
DELETE: Access = Access{bits: winnt::DELETE,}
Required to delete the object.
pub const READ_CONTROL: Access
READ_CONTROL: Access = Access{bits: winnt::READ_CONTROL,}
Required to read information in the security descriptor for the object, not including
the information in the SACL. To read or write the SACL, you must request the
ACCESS_SYSTEM_SECURITY
access right. For more information, see SACL Access Right.
pub const WRITE_DAC: Access
WRITE_DAC: Access = Access{bits: winnt::WRITE_DAC,}
Required to modify the DACL in the security descriptor for the object.
pub const WRITE_OWNER: Access
WRITE_OWNER: Access = Access{bits: winnt::WRITE_OWNER,}
Required to change the owner in the security descriptor for the object.
pub const SYNCHRONIZE: Access
SYNCHRONIZE: Access = Access{bits: winnt::SYNCHRONIZE,}
The right to use the object for synchronization. This enables a thread to wait until the object is in the signaled state.
pub const STANDARD_RIGHTS_REQUIRED: Access
STANDARD_RIGHTS_REQUIRED: Access = Access{bits: winnt::STANDARD_RIGHTS_REQUIRED,}
Union of DELETE | READ_CONTROL | WRITE_DAC | WRITE_OWNER
.
pub const PROCESS_TERMINATE: Access
PROCESS_TERMINATE: Access = Access{bits: winnt::PROCESS_TERMINATE,}
Required to terminate a process.
pub const PROCESS_CREATE_THREAD: Access
PROCESS_CREATE_THREAD: Access = Access{bits: winnt::PROCESS_CREATE_THREAD,}
Required to create a thread.
pub const PROCESS_SET_SESSIONID: Access
PROCESS_SET_SESSIONID: Access = Access{bits: winnt::PROCESS_SET_SESSIONID,}
pub const PROCESS_VM_OPERATION: Access
PROCESS_VM_OPERATION: Access = Access{bits: winnt::PROCESS_VM_OPERATION,}
Required to perform an operation on the address space of a process.
pub const PROCESS_VM_READ: Access
PROCESS_VM_READ: Access = Access{bits: winnt::PROCESS_VM_READ,}
Required to read memory in a process.
pub const PROCESS_VM_WRITE: Access
PROCESS_VM_WRITE: Access = Access{bits: winnt::PROCESS_VM_WRITE,}
Required to write to memory in a process.
pub const PROCESS_DUP_HANDLE: Access
PROCESS_DUP_HANDLE: Access = Access{bits: winnt::PROCESS_DUP_HANDLE,}
Required to duplicate a handle.
pub const PROCESS_CREATE_PROCESS: Access
PROCESS_CREATE_PROCESS: Access = Access{bits: winnt::PROCESS_CREATE_PROCESS,}
Required to create a process.
pub const PROCESS_SET_QUOTA: Access
PROCESS_SET_QUOTA: Access = Access{bits: winnt::PROCESS_SET_QUOTA,}
Required to set memory limits.
pub const PROCESS_SET_INFORMATION: Access
PROCESS_SET_INFORMATION: Access = Access{bits: winnt::PROCESS_SET_INFORMATION,}
Required to set certain information about a process, such as its priority class.
pub const PROCESS_QUERY_INFORMATION: Access
PROCESS_QUERY_INFORMATION: Access = Access{bits: winnt::PROCESS_QUERY_INFORMATION,}
Required to retrieve certain information about a process, such as its token, exit code, and priority class.
pub const PROCESS_SUSPEND_RESUME: Access
PROCESS_SUSPEND_RESUME: Access = Access{bits: winnt::PROCESS_SUSPEND_RESUME,}
Required to suspend or resume a process.
pub const PROCESS_QUERY_LIMITED_INFORMATION: Access
PROCESS_QUERY_LIMITED_INFORMATION: Access = Access{bits: winnt::PROCESS_QUERY_LIMITED_INFORMATION,}
Required to retrieve certain information about a process (exit code, priority class,job status, path).
A handle that has the PROCESS_QUERY_INFORMATION
access right is
automatically granted PROCESS_QUERY_LIMITED_INFORMATION
.
pub const PROCESS_SET_LIMITED_INFORMATION: Access
PROCESS_SET_LIMITED_INFORMATION: Access = Access{bits: winnt::PROCESS_SET_LIMITED_INFORMATION,}
pub const PROCESS_ALL_ACCESS: Access
PROCESS_ALL_ACCESS: Access = Access{bits: <Self>::STANDARD_RIGHTS_REQUIRED.bits | <Self>::SYNCHRONIZE.bits | 65535,}
All possible access rights for a process object.
pub fn empty() -> Access
pub fn empty() -> Access
Returns an empty set of flags.
pub fn all() -> Access
pub fn all() -> Access
Returns the set containing all flags.
pub fn bits(&self) -> u32
pub fn bits(&self) -> u32
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: u32) -> Option<Access>
pub fn from_bits(bits: u32) -> Option<Access>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: u32) -> Access
pub fn from_bits_truncate(bits: u32) -> Access
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: Access) -> bool
pub fn intersects(&self, other: Access) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: Access) -> bool
pub fn contains(&self, other: Access) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: Access)
pub fn insert(&mut self, other: Access)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: Access)
pub fn remove(&mut self, other: Access)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: Access)
pub fn toggle(&mut self, other: Access)
Toggles the specified flags in-place.
pub fn set(&mut self, other: Access, value: bool)
pub fn set(&mut self, other: Access, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for Access
impl Copy for Access
impl PartialEq for Access
impl PartialEq for Access
fn eq(&self, other: &Access) -> bool
fn eq(&self, other: &Access) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Access) -> bool
fn ne(&self, other: &Access) -> bool
This method tests for !=
.
impl Eq for Access
impl Eq for Access
impl Clone for Access
impl Clone for Access
fn clone(&self) -> Access
fn clone(&self) -> Access
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialOrd for Access
impl PartialOrd for Access
fn partial_cmp(&self, other: &Access) -> Option<Ordering>
fn partial_cmp(&self, other: &Access) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Access) -> bool
fn lt(&self, other: &Access) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Access) -> bool
fn le(&self, other: &Access) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Access) -> bool
fn gt(&self, other: &Access) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Access) -> bool
fn ge(&self, other: &Access) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for Access
impl Ord for Access
fn cmp(&self, other: &Access) -> Ordering
fn cmp(&self, other: &Access) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for Access
impl Hash for Access
fn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Access
impl Debug for Access
impl Binary for Access
impl Binary for Access
impl Octal for Access
impl Octal for Access
impl LowerHex for Access
impl LowerHex for Access
impl UpperHex for Access
impl UpperHex for Access
impl BitOr for Access
impl BitOr for Access
type Output = Access
The resulting type after applying the |
operator.
fn bitor(self, other: Access) -> Access
fn bitor(self, other: Access) -> Access
Returns the union of the two sets of flags.
impl BitOrAssign for Access
impl BitOrAssign for Access
fn bitor_assign(&mut self, other: Access)
fn bitor_assign(&mut self, other: Access)
Adds the set of flags.
impl BitXor for Access
impl BitXor for Access
type Output = Access
The resulting type after applying the ^
operator.
fn bitxor(self, other: Access) -> Access
fn bitxor(self, other: Access) -> Access
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for Access
impl BitXorAssign for Access
fn bitxor_assign(&mut self, other: Access)
fn bitxor_assign(&mut self, other: Access)
Toggles the set of flags.
impl BitAnd for Access
impl BitAnd for Access
type Output = Access
The resulting type after applying the &
operator.
fn bitand(self, other: Access) -> Access
fn bitand(self, other: Access) -> Access
Returns the intersection between the two sets of flags.
impl BitAndAssign for Access
impl BitAndAssign for Access
fn bitand_assign(&mut self, other: Access)
fn bitand_assign(&mut self, other: Access)
Disables all flags disabled in the set.
impl Sub for Access
impl Sub for Access
type Output = Access
The resulting type after applying the -
operator.
fn sub(self, other: Access) -> Access
fn sub(self, other: Access) -> Access
Returns the set difference of the two sets of flags.
impl SubAssign for Access
impl SubAssign for Access
fn sub_assign(&mut self, other: Access)
fn sub_assign(&mut self, other: Access)
Disables all flags enabled in the set.
impl Not for Access
impl Not for Access
type Output = Access
The resulting type after applying the !
operator.
fn not(self) -> Access
fn not(self) -> Access
Returns the complement of this set of flags.
impl Extend<Access> for Access
impl Extend<Access> for Access
fn extend<T: IntoIterator<Item = Access>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Access>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<Access> for Access
impl FromIterator<Access> for Access
fn from_iter<T: IntoIterator<Item = Access>>(iterator: T) -> Access
fn from_iter<T: IntoIterator<Item = Access>>(iterator: T) -> Access
Creates a value from an iterator. Read more
impl Default for Access
[src]
impl Default for Access