[][src]Enum sudo::RunningAs

pub enum RunningAs {
    Root,
    User,
    Suid,
}

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 Debug for RunningAs[src]

impl PartialEq<RunningAs> for RunningAs[src]

impl StructuralPartialEq for RunningAs[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.