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 Gid
pub fn from_raw(gid: gid_t) -> Self
[src]
pub fn from_raw(gid: gid_t) -> Self
Creates Gid
from raw gid_t
.
pub fn current() -> Self
[src]
pub fn current() -> Self
Returns Gid of calling process. This is practically a more Rusty alias for getgid
.
pub fn effective() -> Self
[src]
pub fn effective() -> Self
Returns effective Gid of calling process. This is practically a more Rusty alias for getgid
.
Trait Implementations
impl Debug for Gid
[src]
impl Debug for Gid
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Gid
[src]
impl Copy for Gid
impl Clone for Gid
[src]
impl Clone for Gid
fn clone(&self) -> Gid
[src]
fn clone(&self) -> Gid
Returns 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 Gid
impl PartialEq for Gid
[src]
impl PartialEq for Gid
fn eq(&self, other: &Gid) -> bool
[src]
fn eq(&self, other: &Gid) -> bool
This 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) -> bool
This method tests for !=
.
impl Hash for Gid
[src]
impl Hash for Gid
fn 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_t
impl Display for Gid
[src]
impl Display for Gid