pub enum RunningAs {
Root,
User,
Suid,
}Expand description
Cross platform representation of the state the current program running
Variants§
Root
Root (Linux/Mac OS/Unix) or Administrator (Windows)
User
Running as a normal user
Suid
Started from SUID, a call to sudo::escalate_if_needed or sudo::with_env is required to claim the root privileges at runtime.
This does not restart the process.
Trait Implementations§
impl StructuralPartialEq for RunningAs
Auto Trait Implementations§
impl Freeze for RunningAs
impl RefUnwindSafe for RunningAs
impl Send for RunningAs
impl Sync for RunningAs
impl Unpin for RunningAs
impl UnwindSafe for RunningAs
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