pub struct Group { /* private fields */ }Expand description
Information about a particular group.
For more information, see the module documentation.
Implementations§
Source§impl 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 Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more