#[repr(u16)]pub enum Proposal {
Add(AddProposal),
Update(UpdateProposal),
Remove(RemoveProposal),
PreSharedKey(PreSharedKeyProposal),
ReInit(ReInitProposal),
ExternalInit(ExternalInitProposal),
GroupContextExtensions(GroupContextExtensionsProposal),
AppDataUpdate(AppDataUpdate),
AppEphemeral(AppEphemeral),
SelfRemove(SelfRemoveProposal),
}
Variants§
Add(AddProposal)
Update(UpdateProposal)
Remove(RemoveProposal)
ReInit(ReInitProposal)
ExternalInit(ExternalInitProposal)
GroupContextExtensions(GroupContextExtensionsProposal)
AppDataUpdate(AppDataUpdate)
Available on crate feature
draft-ietf-mls-extensions
only.AppEphemeral(AppEphemeral)
Available on crate feature
draft-ietf-mls-extensions
only.SelfRemove(SelfRemoveProposal)
Available on crate feature
draft-ietf-mls-extensions
only.Implementations§
Source§impl Proposal
impl Proposal
pub fn proposal_type(&self) -> ProposalType
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Proposal
impl<'de> Deserialize<'de> for Proposal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Deserialize for Proposal
impl Deserialize for Proposal
Source§fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
fn tls_deserialize<R: Read>(bytes: &mut R) -> Result<Self, Error>
This function deserializes the
bytes
from the provided a std::io::Read
and returns the populated struct. Read moreSource§impl From<&Proposal> for ProposalType
impl From<&Proposal> for ProposalType
impl Eq for Proposal
impl StructuralPartialEq for Proposal
Auto Trait Implementations§
impl Freeze for Proposal
impl RefUnwindSafe for Proposal
impl Send for Proposal
impl Sync for Proposal
impl Unpin for Proposal
impl UnwindSafe for Proposal
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