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§

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§