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.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Roster<'a>
impl<'a> RefUnwindSafe for Roster<'a>
impl<'a> Send for Roster<'a>
impl<'a> Sync for Roster<'a>
impl<'a> Unpin for Roster<'a>
impl<'a> UnwindSafe for Roster<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more