pub struct GroupManager { /* private fields */ }Expand description
Group manager for simplified API
Implementations§
Source§impl GroupManager
impl GroupManager
Sourcepub async fn group_new(&self, members: &[Identity]) -> Result<GroupId>
pub async fn group_new(&self, members: &[Identity]) -> Result<GroupId>
Create a new group with initial members
Sourcepub async fn group_new_with_config(
&self,
members: &[Identity],
config: GroupConfig,
) -> Result<GroupId>
pub async fn group_new_with_config( &self, members: &[Identity], config: GroupConfig, ) -> Result<GroupId>
Create a new group with explicit configuration (including cipher suite)
Sourcepub async fn add_member(
&self,
group_id: &GroupId,
id: Identity,
) -> Result<Commit>
pub async fn add_member( &self, group_id: &GroupId, id: Identity, ) -> Result<Commit>
Add a member to the group
Sourcepub async fn remove_member(
&self,
group_id: &GroupId,
id: Identity,
) -> Result<Commit>
pub async fn remove_member( &self, group_id: &GroupId, id: Identity, ) -> Result<Commit>
Remove a member from the group
Trait Implementations§
Source§impl Debug for GroupManager
impl Debug for GroupManager
Auto Trait Implementations§
impl !RefUnwindSafe for GroupManager
impl !UnwindSafe for GroupManager
impl Freeze for GroupManager
impl Send for GroupManager
impl Sync for GroupManager
impl Unpin for GroupManager
impl UnsafeUnpin for GroupManager
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