pub struct GroupEntry {
pub groupname: String,
pub gid: gid_t,
pub list: Vec<String>,
}Expand description
An entry to the /etc/group file.
Fields§
§groupname: String§gid: gid_t§list: Vec<String>Implementations§
Source§impl GroupEntry
impl GroupEntry
Sourcepub fn get_entry_from_group<T: ToString>(name: &T) -> Result<GroupEntry, i32>
pub fn get_entry_from_group<T: ToString>(name: &T) -> Result<GroupEntry, i32>
Get the entry from the group database
Sourcepub fn get_entry_by_gid(gid: gid_t) -> Result<GroupEntry, i32>
pub fn get_entry_by_gid(gid: gid_t) -> Result<GroupEntry, i32>
Get the entry from the group database by GID
Trait Implementations§
Source§impl Clone for GroupEntry
impl Clone for GroupEntry
Source§fn clone(&self) -> GroupEntry
fn clone(&self) -> GroupEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GroupEntry
impl RefUnwindSafe for GroupEntry
impl Send for GroupEntry
impl Sync for GroupEntry
impl Unpin for GroupEntry
impl UnwindSafe for GroupEntry
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