pub struct ProcessHandleInfo<'a, P: Process + ?Sized> {
pub handle: Handle,
pub access: u32,
pub object_type: u32,
pub count: usize,
pub pointer_count: usize,
pub attributes: u32,
/* private fields */
}Expand description
Represents a handle that a process has opened.
Fields§
§handle: HandleThe value of the handle.
access: u32The raw access mask of the object handle.
object_type: u32The type identifier of the object
count: usizeThe number of references to the handle.
pointer_count: usizeThe number of pointers to the handle.
attributes: u32The attributes of the handle.
Implementations§
Source§impl<'a, P: Process> ProcessHandleInfo<'a, P>
impl<'a, P: Process> ProcessHandleInfo<'a, P>
Sourcepub fn duplicate_handle(&self, access: Option<u32>) -> Result<Handle>
pub fn duplicate_handle(&self, access: Option<u32>) -> Result<Handle>
Duplicates the handle.
§Access Rights
This method requires an object access mask beyond standard bounds
like process access and thread access. Therefore, the desired access
has been kept in its raw state as a u32. However, if the access is
None, it will copy the handle’s original access mask.
Trait Implementations§
Source§impl<'a, P: Clone + Process + ?Sized> Clone for ProcessHandleInfo<'a, P>
impl<'a, P: Clone + Process + ?Sized> Clone for ProcessHandleInfo<'a, P>
Source§fn clone(&self) -> ProcessHandleInfo<'a, P>
fn clone(&self) -> ProcessHandleInfo<'a, P>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a, P: Process> Into<HandleObject> for ProcessHandleInfo<'a, P>
impl<'a, P: Process> Into<HandleObject> for ProcessHandleInfo<'a, P>
Source§fn into(self) -> HandleObject
fn into(self) -> HandleObject
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl<'a, P> Freeze for ProcessHandleInfo<'a, P>where
P: ?Sized,
impl<'a, P> RefUnwindSafe for ProcessHandleInfo<'a, P>where
P: RefUnwindSafe + ?Sized,
impl<'a, P> Send for ProcessHandleInfo<'a, P>
impl<'a, P> Sync for ProcessHandleInfo<'a, P>
impl<'a, P> Unpin for ProcessHandleInfo<'a, P>where
P: ?Sized,
impl<'a, P> UnwindSafe for ProcessHandleInfo<'a, P>where
P: RefUnwindSafe + ?Sized,
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