pub struct JoinProposal;
Expand description
External Add Proposal where sender is NewMemberProposal. A client outside the group can request joining the group. This proposal should then be committed by a group member. Note that this is unconstrained i.e. it works for any MLS group. This is not the case for the same external proposal with a Preconfigured sender
Implementations§
Source§impl JoinProposal
impl JoinProposal
Sourcepub fn new<Storage: StorageProvider>(
key_package: KeyPackage,
group_id: GroupId,
epoch: GroupEpoch,
signer: &impl Signer,
) -> Result<MlsMessageOut, ProposeAddMemberError<Storage::Error>>
pub fn new<Storage: StorageProvider>( key_package: KeyPackage, group_id: GroupId, epoch: GroupEpoch, signer: &impl Signer, ) -> Result<MlsMessageOut, ProposeAddMemberError<Storage::Error>>
Creates an external Add proposal. For clients requesting to be added to a group. This proposal will have to be committed later by a group member.
§Arguments
key_package
- of the joinergroup_id
- unique group identifier of the group to joinepoch
- group’s epochsigner
- of the sender to sign the message
Auto Trait Implementations§
impl Freeze for JoinProposal
impl RefUnwindSafe for JoinProposal
impl Send for JoinProposal
impl Sync for JoinProposal
impl Unpin for JoinProposal
impl UnwindSafe for JoinProposal
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
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>
Converts
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>
Converts
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