Enum openmls::prelude::ProcessedMessage
source · [−]pub enum ProcessedMessage {
ApplicationMessage(ApplicationMessage),
ProposalMessage(Box<QueuedProposal>),
StagedCommitMessage(Box<StagedCommit>),
}
Expand description
A message that has passed all syntax and semantics checks.
See the variants’ documentation for more information.
StagedCommit
and QueuedProposal
can be inspected for authorization purposes.
Variants
ApplicationMessage(ApplicationMessage)
An application message.
The ApplicationMessage
contains a vector of bytes that can be used right-away.
ProposalMessage(Box<QueuedProposal>)
A standalone proposal.
The QueuedProposal
can be inspected for authorization purposes by the application.
If the proposal is deemed to be allowed, it should be added to the group’s proposal
queue using MlsGroup::store_pending_proposal()
.
StagedCommitMessage(Box<StagedCommit>)
A Commit message.
The StagedCommit
can be inspected for authorization purposes by the application.
If the type of the commit and the proposals it covers are deemed to be allowed,
the commit should be merged into the group’s state using
MlsGroup::merge_staged_commit()
.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ProcessedMessage
impl Send for ProcessedMessage
impl Sync for ProcessedMessage
impl Unpin for ProcessedMessage
impl UnwindSafe for ProcessedMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more