Struct mls_rs::group::proposal::PreSharedKeyProposal
source · pub struct PreSharedKeyProposal { /* private fields */ }
Expand description
A proposal to add a pre-shared key to a group.
Implementations§
sourcepub fn external_psk_id(&self) -> Option<&ExternalPskId>
pub fn external_psk_id(&self) -> Option<&ExternalPskId>
The external pre-shared key id of this proposal.
MLS requires the pre-shared key type for PreSharedKeyProposal to be of
type External
.
Returns None
in the condition that the underlying psk is not external.
Trait Implementations§
source§fn clone(&self) -> PreSharedKeyProposal
fn clone(&self) -> PreSharedKeyProposal
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§fn from(p: &'a PreSharedKeyProposal) -> Self
fn from(p: &'a PreSharedKeyProposal) -> Self
Converts to this type from the input type.
fn mls_encoded_len(&self) -> usize
source§fn eq(&self, other: &PreSharedKeyProposal) -> bool
fn eq(&self, other: &PreSharedKeyProposal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.Auto Trait Implementations§
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more