Struct mls_rs::group::mls_rules::EncryptionOptions
source · #[non_exhaustive]pub struct EncryptionOptions {
pub encrypt_control_messages: bool,
pub padding_mode: PaddingMode,
}
Expand description
Options controlling encryption of control and application messages
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.encrypt_control_messages: bool
§padding_mode: PaddingMode
Implementations§
source§impl EncryptionOptions
impl EncryptionOptions
pub fn new(encrypt_control_messages: bool, padding_mode: PaddingMode) -> Self
Trait Implementations§
source§impl Clone for EncryptionOptions
impl Clone for EncryptionOptions
source§fn clone(&self) -> EncryptionOptions
fn clone(&self) -> EncryptionOptions
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 EncryptionOptions
impl Debug for EncryptionOptions
source§impl Default for EncryptionOptions
impl Default for EncryptionOptions
source§fn default() -> EncryptionOptions
fn default() -> EncryptionOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for EncryptionOptions
impl PartialEq for EncryptionOptions
source§fn eq(&self, other: &EncryptionOptions) -> bool
fn eq(&self, other: &EncryptionOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for EncryptionOptions
impl Eq for EncryptionOptions
impl StructuralEq for EncryptionOptions
impl StructuralPartialEq for EncryptionOptions
Auto Trait Implementations§
impl RefUnwindSafe for EncryptionOptions
impl Send for EncryptionOptions
impl Sync for EncryptionOptions
impl Unpin for EncryptionOptions
impl UnwindSafe for EncryptionOptions
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more