pub struct KeyPackage {
pub version: ProtocolVersion,
pub cipher_suite: CiphersuiteId,
pub init_key: SensitiveBytes,
pub leaf_node: LeafNode,
pub extensions: Vec<Extension>,
pub signature: SensitiveBytes,
}
Fields§
§version: ProtocolVersion
§cipher_suite: CiphersuiteId
§init_key: SensitiveBytes
§leaf_node: LeafNode
§extensions: Vec<Extension>
§signature: SensitiveBytes
Implementations§
Source§impl KeyPackage
impl KeyPackage
pub fn to_tbs(&self) -> KeyPackageTBS<'_>
pub fn into_message(self) -> MlsMessage
Trait Implementations§
Source§impl Clone for KeyPackage
impl Clone for KeyPackage
Source§fn clone(&self) -> KeyPackage
fn clone(&self) -> KeyPackage
Returns a duplicate 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 KeyPackage
impl Debug for KeyPackage
Source§impl<'de> Deserialize<'de> for KeyPackage
impl<'de> Deserialize<'de> for KeyPackage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Deserialize for KeyPackage
impl Deserialize for KeyPackage
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 Drop for KeyPackage
impl Drop for KeyPackage
Source§impl PartialEq for KeyPackage
impl PartialEq for KeyPackage
Source§impl Serialize for &KeyPackage
impl Serialize for &KeyPackage
Source§impl Serialize for KeyPackage
impl Serialize for KeyPackage
Source§impl Serialize for KeyPackage
impl Serialize for KeyPackage
Source§impl Size for &KeyPackage
impl Size for &KeyPackage
fn tls_serialized_len(&self) -> usize
Source§impl Size for KeyPackage
impl Size for KeyPackage
fn tls_serialized_len(&self) -> usize
Source§impl Zeroize for KeyPackage
impl Zeroize for KeyPackage
impl Eq for KeyPackage
impl StructuralPartialEq for KeyPackage
Auto Trait Implementations§
impl Freeze for KeyPackage
impl RefUnwindSafe for KeyPackage
impl Send for KeyPackage
impl Sync for KeyPackage
impl Unpin for KeyPackage
impl UnwindSafe for KeyPackage
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