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 DeserializeBytes for EncryptedGroupSecrets
impl DeserializeBytes for EncryptedGroupSecrets
Source§impl PartialEq for EncryptedGroupSecrets
impl PartialEq for EncryptedGroupSecrets
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 StructuralPartialEq for EncryptedGroupSecrets
Auto Trait Implementations§
impl Freeze for EncryptedGroupSecrets
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more