#[non_exhaustive]#[repr(u16)]pub enum Proposal {
Add(Box<AddProposal>),
Update(UpdateProposal),
Remove(RemoveProposal),
Psk(PreSharedKeyProposal),
ReInit(ReInitProposal),
ExternalInit(ExternalInit),
GroupContextExtensions(ExtensionList),
Custom(CustomProposal),
}
Expand description
An enum that represents all possible types of proposals.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Add(Box<AddProposal>)
Update(UpdateProposal)
Remove(RemoveProposal)
Psk(PreSharedKeyProposal)
ReInit(ReInitProposal)
ExternalInit(ExternalInit)
GroupContextExtensions(ExtensionList)
Custom(CustomProposal)
Implementations§
source§impl Proposal
impl Proposal
pub fn proposal_type(&self) -> ProposalType
Trait Implementations§
source§impl<'a> From<&'a Proposal> for BorrowedProposal<'a>
impl<'a> From<&'a Proposal> for BorrowedProposal<'a>
source§impl<'a> From<BorrowedProposal<'a>> for Proposal
impl<'a> From<BorrowedProposal<'a>> for Proposal
source§fn from(value: BorrowedProposal<'a>) -> Self
fn from(value: BorrowedProposal<'a>) -> Self
Converts to this type from the input type.
source§impl PartialEq for Proposal
impl PartialEq for Proposal
impl StructuralPartialEq for Proposal
Auto Trait Implementations§
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