#[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)
AppEphemeral(AppEphemeral)
SelfRemove(SelfRemoveProposal)
Implementations§
Source§impl Proposal
impl Proposal
pub fn proposal_type(&self) -> ProposalType
Trait Implementations§
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