pub struct Process(/* private fields */);
Expand description
Information about the calling process.
Implementations§
Source§impl Process
impl Process
Sourcepub fn session_id(&self) -> u32
pub fn session_id(&self) -> u32
The ID of the session where the user process resides.
§Note
Process::session_id is valid in versions 1803 and later.
Sourcepub fn application_id(&self) -> OsString
pub fn application_id(&self) -> OsString
The application’s ID.
Sourcepub fn command_line(&self) -> Option<OsString>
pub fn command_line(&self) -> Option<OsString>
The exact command used to initialize the user process.
§Note
Process::command_line is valid in versions 1803 and later.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Process
impl RefUnwindSafe for Process
impl !Send for Process
impl !Sync for Process
impl Unpin for Process
impl UnwindSafe for Process
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