pub struct Roster<'a> { /* private fields */ }
Implementations§
source§impl<'a> Roster<'a>
impl<'a> Roster<'a>
sourcepub fn members_iter(&self) -> impl Iterator<Item = Member> + 'a
pub fn members_iter(&self) -> impl Iterator<Item = Member> + 'a
Iterator over the current roster that lazily copies data out of the internal group state.
Warning
The indexes within this iterator do not correlate with indexes of users
within ReceivedMessage
content descriptions due to the layout of
member information within a MLS group state.
sourcepub fn members(&self) -> Vec<Member>
pub fn members(&self) -> Vec<Member>
The current set of group members. This function makes a clone of member information from the internal group state.
Warning
The indexes within this roster do not correlate with indexes of users
within ReceivedMessage
content descriptions due to the layout of
member information within a MLS group state.
sourcepub fn member_with_index(&self, index: u32) -> Result<Member, MlsError>
pub fn member_with_index(&self, index: u32) -> Result<Member, MlsError>
Retrieve the member with given index
within the group in time O(1)
.
This index does correlate with indexes of users within ReceivedMessage
content descriptions.
sourcepub fn member_identities_iter(
&self
) -> impl Iterator<Item = &SigningIdentity> + '_
pub fn member_identities_iter( &self ) -> impl Iterator<Item = &SigningIdentity> + '_
Iterator over member’s signing identities.
Warning
The indexes within this iterator do not correlate with indexes of users
within ReceivedMessage
content descriptions due to the layout of
member information within a MLS group state.