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§
source§impl Uid
impl Uid
sourcepub fn current() -> Self
pub fn current() -> Self
Returns Uid of calling process. This is practically a more Rusty alias for getuid
.
sourcepub fn effective() -> Self
pub fn effective() -> Self
Returns effective Uid of calling process. This is practically a more Rusty alias for geteuid
.