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.
Methods
impl Gid[src] 
impl Gidpub fn from_raw(gid: gid_t) -> Self[src] 
pub fn from_raw(gid: gid_t) -> SelfCreates Gid from raw gid_t.
pub fn current() -> Self[src] 
pub fn current() -> SelfReturns Gid of calling process. This is practically a more Rusty alias for getgid.
pub fn effective() -> Self[src] 
pub fn effective() -> SelfReturns effective Gid of calling process. This is practically a more Rusty alias for getgid.
Trait Implementations
impl Debug for Gid[src] 
impl Debug for Gidfn fmt(&self, f: &mut Formatter) -> Result[src] 
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Copy for Gid[src] 
impl Copy for Gidimpl Clone for Gid[src] 
impl Clone for Gidfn clone(&self) -> Gid[src] 
fn clone(&self) -> GidReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Eq for Gid[src] 
impl Eq for Gidimpl PartialEq for Gid[src] 
impl PartialEq for Gidfn eq(&self, other: &Gid) -> bool[src] 
fn eq(&self, other: &Gid) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Gid) -> bool[src] 
fn ne(&self, other: &Gid) -> boolThis method tests for !=.
impl Hash for Gid[src] 
impl Hash for Gidfn hash<__H: Hasher>(&self, state: &mut __H)[src] 
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0[src] 
fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher, 1.3.0
[src]Feeds a slice of this type into the given [Hasher]. Read more
impl From<Gid> for gid_t[src] 
impl From<Gid> for gid_timpl Display for Gid[src] 
impl Display for Gid