Struct openmls::group::config::CryptoConfig
source · pub struct CryptoConfig {
pub ciphersuite: Ciphersuite,
pub version: ProtocolVersion,
}
Expand description
A config struct for commonly used values when performing cryptographic operations.
Fields§
§ciphersuite: Ciphersuite
The Ciphersuite
used.
version: ProtocolVersion
The MLS ProtocolVersion
used.
Implementations§
source§impl CryptoConfig
impl CryptoConfig
sourcepub fn with_default_version(ciphersuite: Ciphersuite) -> Self
pub fn with_default_version(ciphersuite: Ciphersuite) -> Self
Create a new crypto config with the given ciphersuite and the default protocol version.
Trait Implementations§
source§impl Clone for CryptoConfig
impl Clone for CryptoConfig
source§fn clone(&self) -> CryptoConfig
fn clone(&self) -> CryptoConfig
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 CryptoConfig
impl Debug for CryptoConfig
source§impl Default for CryptoConfig
impl Default for CryptoConfig
source§impl<'de> Deserialize<'de> for CryptoConfig
impl<'de> Deserialize<'de> for CryptoConfig
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 PartialEq<CryptoConfig> for CryptoConfig
impl PartialEq<CryptoConfig> for CryptoConfig
source§fn eq(&self, other: &CryptoConfig) -> bool
fn eq(&self, other: &CryptoConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for CryptoConfig
impl Serialize for CryptoConfig
impl Copy for CryptoConfig
impl Eq for CryptoConfig
impl StructuralEq for CryptoConfig
impl StructuralPartialEq for CryptoConfig
Auto Trait Implementations§
impl RefUnwindSafe for CryptoConfig
impl Send for CryptoConfig
impl Sync for CryptoConfig
impl Unpin for CryptoConfig
impl UnwindSafe for CryptoConfig
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