pub struct ExternalProposal;
Expand description
External Proposal where sender is External. A party outside the group can request to add or remove a member to the group. This proposal should then be committed by a group member. The sender must be pre configured within the group through the crate::extensions::ExternalSendersExtension
Implementations§
Source§impl ExternalProposal
impl ExternalProposal
Sourcepub fn new_remove<Provider: OpenMlsProvider>(
removed: LeafNodeIndex,
group_id: GroupId,
epoch: GroupEpoch,
signer: &impl Signer,
sender_index: SenderExtensionIndex,
) -> Result<MlsMessageOut, ProposeRemoveMemberError<Provider::StorageError>>
pub fn new_remove<Provider: OpenMlsProvider>( removed: LeafNodeIndex, group_id: GroupId, epoch: GroupEpoch, signer: &impl Signer, sender_index: SenderExtensionIndex, ) -> Result<MlsMessageOut, ProposeRemoveMemberError<Provider::StorageError>>
Creates an external Remove proposal. For delivery services requesting to remove a client. This proposal will have to be committed later by a group member.
§Arguments
removed
- index of the client to removegroup_id
- unique group identifier of the group to joinepoch
- group’s epochsigner
- of the sender to sign the messagesender
- index of the sender of the proposal (in the crate::extensions::ExternalSendersExtension array from the Group Context)
Auto Trait Implementations§
impl Freeze for ExternalProposal
impl RefUnwindSafe for ExternalProposal
impl Send for ExternalProposal
impl Sync for ExternalProposal
impl Unpin for ExternalProposal
impl UnwindSafe for ExternalProposal
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