Trait mls_rs::group::proposal::MlsCustomProposal
source · pub trait MlsCustomProposal: MlsSize + MlsEncode + MlsDecode + Sized {
// Required method
fn proposal_type() -> ProposalType;
// Provided methods
fn to_custom_proposal(&self) -> Result<CustomProposal, Error> { ... }
fn from_custom_proposal(proposal: &CustomProposal) -> Result<Self, Error> { ... }
}Expand description
Trait to simplify creating custom proposals that are serialized with MLS encoding.
Required Methods§
fn proposal_type() -> ProposalType
Provided Methods§
fn to_custom_proposal(&self) -> Result<CustomProposal, Error>
fn from_custom_proposal(proposal: &CustomProposal) -> Result<Self, Error>
Object Safety§
This trait is not object safe.