Struct openmls::messages::EncryptedGroupSecrets
source · pub struct EncryptedGroupSecrets { /* private fields */ }
Expand description
EncryptedGroupSecrets
This is part of a Welcome
message. It can be used to correlate the correct secrets with each new member.
Implementations§
source§impl EncryptedGroupSecrets
impl EncryptedGroupSecrets
sourcepub fn new(
new_member: KeyPackageRef,
encrypted_group_secrets: HpkeCiphertext
) -> Self
pub fn new( new_member: KeyPackageRef, encrypted_group_secrets: HpkeCiphertext ) -> Self
Build a new EncryptedGroupSecrets
.
sourcepub fn new_member(&self) -> KeyPackageRef
pub fn new_member(&self) -> KeyPackageRef
Returns the encrypted group secrets’ new KeyPackageRef
.
Trait Implementations§
source§impl Clone for EncryptedGroupSecrets
impl Clone for EncryptedGroupSecrets
source§fn clone(&self) -> EncryptedGroupSecrets
fn clone(&self) -> EncryptedGroupSecrets
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 Debug for EncryptedGroupSecrets
impl Debug for EncryptedGroupSecrets
source§impl Deserialize for EncryptedGroupSecrets
impl Deserialize for EncryptedGroupSecrets
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 PartialEq<EncryptedGroupSecrets> for EncryptedGroupSecrets
impl PartialEq<EncryptedGroupSecrets> for EncryptedGroupSecrets
source§fn eq(&self, other: &EncryptedGroupSecrets) -> bool
fn eq(&self, other: &EncryptedGroupSecrets) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for &EncryptedGroupSecrets
impl Serialize for &EncryptedGroupSecrets
source§impl Serialize for EncryptedGroupSecrets
impl Serialize for EncryptedGroupSecrets
source§impl Size for &EncryptedGroupSecrets
impl Size for &EncryptedGroupSecrets
fn tls_serialized_len(&self) -> usize
source§impl Size for EncryptedGroupSecrets
impl Size for EncryptedGroupSecrets
fn tls_serialized_len(&self) -> usize
impl Eq for EncryptedGroupSecrets
impl StructuralEq for EncryptedGroupSecrets
impl StructuralPartialEq for EncryptedGroupSecrets
Auto Trait Implementations§
impl RefUnwindSafe for EncryptedGroupSecrets
impl Send for EncryptedGroupSecrets
impl Sync for EncryptedGroupSecrets
impl Unpin for EncryptedGroupSecrets
impl UnwindSafe for EncryptedGroupSecrets
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