pub struct Group { /* private fields */ }
Expand description
Information about a particular group.
For more information, see the module documentation.
Implementations
sourceimpl Group
impl Group
sourcepub fn new<S: AsRef<OsStr> + ?Sized>(gid: gid_t, name: &S) -> Self
pub fn new<S: AsRef<OsStr> + ?Sized>(gid: gid_t, name: &S) -> Self
Create a new Group
with the given group ID and name, with the
rest of the fields filled in with dummy values.
This method does not actually create a new group on the system — it should only be used for comparing groups in tests.
Examples
use users::Group;
let group = Group::new(102, "database");
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more