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 Freeze for RemoveOperation
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
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