pub(crate) fn new(
        version: ProtocolVersion,
        cipher_suite: &'static Ciphersuite,
        secrets: Vec<EncryptedGroupSecrets>,
        encrypted_group_info: Vec<u8>,
    ) -> Self {
        Self {
            version,
            cipher_suite: cipher_suite.name(),
            secrets: secrets.into(),
            encrypted_group_info: encrypted_group_info.into(),
        }
    }
/// Create a new welcome message from the provided data.
/// Note that secrets and the encrypted group info are consumed.
Create a new welcome message from the provided data.
Note that secrets and the encrypted group info are consumed.
Create a new welcome message from the provided data . Note that secrets and the encrypted group info are consumed .
pub(crate) fn new(
        version: ProtocolVersion,
        cipher_suite: &'static Ciphersuite,
        secrets: Vec<EncryptedGroupSecrets>,
        encrypted_group_info: Vec<u8>,
    ) -> Self {
        Self {
            version,
            cipher_suite: cipher_suite.name(),
            secrets: secrets.into(),
            encrypted_group_info: encrypted_group_info.into(),
        }
    }
pub ( crate ) fn new ( version : ProtocolVersion , cipher_suite : & ' static Ciphersuite , secrets : Vec < EncryptedGroupSecrets > , encrypted_group_info : Vec < u8 > , ) -> Self { Self { version , cipher_suite : cipher_suite . name ( ) , secrets : secrets . into ( ) , encrypted_group_info : encrypted_group_info . into ( ) , } }
Create a new welcome message from the provided data.
Create a new welcome message from the provided data .
version
ProtocolVersion
cipher_suite
&'static Ciphersuite
secrets
Vec<EncryptedGroupSecrets>
encrypted_group_info
Vec<u8>
version
ProtocolVersion
cipher_suite
&'static Ciphersuite
secrets
Vec<EncryptedGroupSecrets>
encrypted_group_info
Vec<u8>