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>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.