Struct nix::unistd::Uid [−][src]
pub struct Uid(_);
Expand description
User identifier
Newtype pattern around uid_t (which is just alias). It prevents bugs caused by accidentally
passing wrong value.
Implementations
Returns Uid of calling process. This is practically a more Rusty alias for getuid.
Returns effective Uid of calling process. This is practically a more Rusty alias for geteuid.
Returns true if the Uid represents privileged user - root. (If it equals zero.)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Uid
impl UnwindSafe for Uid
Blanket Implementations
Mutably borrows from an owned value. Read more