pub struct Manager_type(/* private fields */);
Implementations§
Source§impl Manager_type
impl Manager_type
pub fn Get_new_group_identifier(&self) -> Result_type<Group_identifier_type>
pub fn Get_new_user_identifier(&self) -> Result_type<User_identifier_type>
pub fn Add_user( &self, Identifier: User_identifier_type, Name: &str, Primary_group: Group_identifier_type, ) -> Result_type<()>
pub fn Add_group( &self, Identifier: Group_identifier_type, Name: &str, Users: &[User_identifier_type], ) -> Result_type<()>
pub fn Is_root(Identifier: User_identifier_type) -> bool
pub fn Is_in_group( &self, User_identifier: User_identifier_type, Group_identifier: Group_identifier_type, ) -> bool
pub fn Get_user_groups( &self, Identifier: User_identifier_type, ) -> Result_type<BTreeSet<Group_identifier_type>>
pub fn Exists_group( &self, Identifier: Group_identifier_type, ) -> Result_type<bool>
pub fn Exists_user(&self, Identifier: User_identifier_type) -> Result_type<bool>
pub fn Add_to_group( &self, User_identifier: User_identifier_type, Group_identifier: Group_identifier_type, ) -> Result_type<()>
pub fn Get_group_name( &self, Identifier: Group_identifier_type, ) -> Result_type<String>
pub fn Get_user_identifier( &self, Name: &str, ) -> Result_type<User_identifier_type>
pub fn Get_group_users( &self, Identifier: Group_identifier_type, ) -> Result_type<Vec<User_identifier_type>>
pub fn Get_user_name( &self, Identifier: User_identifier_type, ) -> Result_type<String>
pub fn Get_user_primary_group( &self, Identifier: User_identifier_type, ) -> Result_type<Group_identifier_type>
pub fn Check_credentials(&self, _User_name: &str, _Password: &str) -> bool
Auto Trait Implementations§
impl !Freeze for Manager_type
impl RefUnwindSafe for Manager_type
impl Send for Manager_type
impl Sync for Manager_type
impl Unpin for Manager_type
impl UnwindSafe for Manager_type
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