Enum mls_rs::group::proposal::BorrowedProposal
source · pub enum BorrowedProposal<'a> {
Add(&'a AddProposal),
Update(&'a UpdateProposal),
Remove(&'a RemoveProposal),
Psk(&'a PreSharedKeyProposal),
ReInit(&'a ReInitProposal),
ExternalInit(&'a ExternalInit),
GroupContextExtensions(&'a ExtensionList),
Custom(&'a CustomProposal),
}Expand description
An enum that represents a borrowed version of Proposal.
Variants§
Add(&'a AddProposal)
Update(&'a UpdateProposal)
Remove(&'a RemoveProposal)
Psk(&'a PreSharedKeyProposal)
ReInit(&'a ReInitProposal)
ExternalInit(&'a ExternalInit)
GroupContextExtensions(&'a ExtensionList)
Custom(&'a CustomProposal)
Implementations§
source§impl BorrowedProposal<'_>
impl BorrowedProposal<'_>
pub fn proposal_type(&self) -> ProposalType
Trait Implementations§
source§impl<'a> Clone for BorrowedProposal<'a>
impl<'a> Clone for BorrowedProposal<'a>
source§fn clone(&self) -> BorrowedProposal<'a>
fn clone(&self) -> BorrowedProposal<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<'a> Debug for BorrowedProposal<'a>
impl<'a> Debug for BorrowedProposal<'a>
source§impl<'a> From<&'a AddProposal> for BorrowedProposal<'a>
impl<'a> From<&'a AddProposal> for BorrowedProposal<'a>
source§fn from(p: &'a AddProposal) -> Self
fn from(p: &'a AddProposal) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a CustomProposal> for BorrowedProposal<'a>
impl<'a> From<&'a CustomProposal> for BorrowedProposal<'a>
source§fn from(p: &'a CustomProposal) -> Self
fn from(p: &'a CustomProposal) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a ExtensionList> for BorrowedProposal<'a>
impl<'a> From<&'a ExtensionList> for BorrowedProposal<'a>
source§fn from(p: &'a ExtensionList) -> Self
fn from(p: &'a ExtensionList) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a ExternalInit> for BorrowedProposal<'a>
impl<'a> From<&'a ExternalInit> for BorrowedProposal<'a>
source§fn from(p: &'a ExternalInit) -> Self
fn from(p: &'a ExternalInit) -> Self
Converts to this type from the input type.
source§fn from(p: &'a PreSharedKeyProposal) -> Self
fn from(p: &'a PreSharedKeyProposal) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a Proposal> for BorrowedProposal<'a>
impl<'a> From<&'a Proposal> for BorrowedProposal<'a>
source§impl<'a> From<&'a ReInitProposal> for BorrowedProposal<'a>
impl<'a> From<&'a ReInitProposal> for BorrowedProposal<'a>
source§fn from(p: &'a ReInitProposal) -> Self
fn from(p: &'a ReInitProposal) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a RemoveProposal> for BorrowedProposal<'a>
impl<'a> From<&'a RemoveProposal> for BorrowedProposal<'a>
source§fn from(p: &'a RemoveProposal) -> Self
fn from(p: &'a RemoveProposal) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a UpdateProposal> for BorrowedProposal<'a>
impl<'a> From<&'a UpdateProposal> for BorrowedProposal<'a>
source§fn from(p: &'a UpdateProposal) -> Self
fn from(p: &'a UpdateProposal) -> Self
Converts to this type from the input type.
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<'a> PartialEq for BorrowedProposal<'a>
impl<'a> PartialEq for BorrowedProposal<'a>
source§fn eq(&self, other: &BorrowedProposal<'a>) -> bool
fn eq(&self, other: &BorrowedProposal<'a>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl<'a> StructuralPartialEq for BorrowedProposal<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for BorrowedProposal<'a>
impl<'a> Send for BorrowedProposal<'a>
impl<'a> Sync for BorrowedProposal<'a>
impl<'a> Unpin for BorrowedProposal<'a>
impl<'a> UnwindSafe for BorrowedProposal<'a>
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