Enum openmls::group::RemoveOperation
source · pub enum RemoveOperation {
WeLeft,
WeWereRemovedBy(Sender),
TheyLeft(LeafNodeIndex),
TheyWereRemovedBy((LeafNodeIndex, Sender)),
WeRemovedThem(LeafNodeIndex),
}
Expand description
Helper enum
that classifies the kind of remove operation. This can be used to
better interpret the semantic value of a remove proposal that is covered in a
Commit message.
Variants§
WeLeft
We issued a remove proposal for ourselves in the previous epoch and the proposal has now been committed.
WeWereRemovedBy(Sender)
Someone else (indicated by the Sender
) removed us from the group.
TheyLeft(LeafNodeIndex)
Another member (indicated by the leaf index) requested to leave the group by issuing a remove proposal in the previous epoch and the proposal has now been committed.
TheyWereRemovedBy((LeafNodeIndex, Sender))
Another member (indicated by the leaf index) was removed by the Sender
.
WeRemovedThem(LeafNodeIndex)
We removed another member (indicated by the leaf index).
Implementations§
source§impl RemoveOperation
impl RemoveOperation
sourcepub fn new(
queued_remove_proposal: QueuedRemoveProposal<'_>,
group: &MlsGroup
) -> Result<Self, LibraryError>
pub fn new( queued_remove_proposal: QueuedRemoveProposal<'_>, group: &MlsGroup ) -> Result<Self, LibraryError>
Constructs a new RemoveOperation
from a QueuedRemoveProposal
and the
corresponding MlsGroup
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for RemoveOperation
impl Send for RemoveOperation
impl Sync for RemoveOperation
impl Unpin for RemoveOperation
impl UnwindSafe for RemoveOperation
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