Struct nix::unistd::Gid [−][src]
pub struct Gid(_);
Group identifier
Newtype pattern around gid_t (which is just alias). It prevents bugs caused by accidentally
passing wrong value.
Implementations
impl Gid[src]
impl Gid[src]pub fn from_raw(gid: gid_t) -> Self[src]
Creates Gid from raw gid_t.
pub fn current() -> Self[src]
Returns Gid of calling process. This is practically a more Rusty alias for getgid.
pub fn effective() -> Self[src]
Returns effective Gid of calling process. This is practically a more Rusty alias for getegid.
pub fn as_raw(self) -> gid_t[src]
Get the raw gid_t wrapped by self.