Struct openmls::prelude::SenderRatchetConfiguration
source · pub struct SenderRatchetConfiguration { /* private fields */ }
Expand description
Stores the configuration parameters for DecryptionRatchet
s.
Parameters
- out_of_order_tolerance: This parameter defines a window for which decryption secrets are kept. This is useful in case the DS cannot guarantee that all application messages have total order within an epoch. Use this carefully, since keeping decryption secrets affects forward secrecy within an epoch. The default value is 5.
- maximum_forward_distance: This parameter defines how many incoming messages can be skipped. This is useful if the DS drops application messages. The default value is 1000.
Implementations§
source§impl SenderRatchetConfiguration
impl SenderRatchetConfiguration
sourcepub fn new(out_of_order_tolerance: u32, maximum_forward_distance: u32) -> Self
pub fn new(out_of_order_tolerance: u32, maximum_forward_distance: u32) -> Self
Create a new configuration
sourcepub fn out_of_order_tolerance(&self) -> u32
pub fn out_of_order_tolerance(&self) -> u32
Get a reference to the sender ratchet configuration’s out of order tolerance.
sourcepub fn maximum_forward_distance(&self) -> u32
pub fn maximum_forward_distance(&self) -> u32
Get a reference to the sender ratchet configuration’s maximum forward distance.
Trait Implementations§
source§impl Clone for SenderRatchetConfiguration
impl Clone for SenderRatchetConfiguration
source§fn clone(&self) -> SenderRatchetConfiguration
fn clone(&self) -> SenderRatchetConfiguration
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 SenderRatchetConfiguration
impl Debug for SenderRatchetConfiguration
source§impl Default for SenderRatchetConfiguration
impl Default for SenderRatchetConfiguration
source§impl<'de> Deserialize<'de> for SenderRatchetConfiguration
impl<'de> Deserialize<'de> for SenderRatchetConfiguration
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<SenderRatchetConfiguration> for SenderRatchetConfiguration
impl PartialEq<SenderRatchetConfiguration> for SenderRatchetConfiguration
source§fn eq(&self, other: &SenderRatchetConfiguration) -> bool
fn eq(&self, other: &SenderRatchetConfiguration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SenderRatchetConfiguration
impl StructuralEq for SenderRatchetConfiguration
impl StructuralPartialEq for SenderRatchetConfiguration
Auto Trait Implementations§
impl RefUnwindSafe for SenderRatchetConfiguration
impl Send for SenderRatchetConfiguration
impl Sync for SenderRatchetConfiguration
impl Unpin for SenderRatchetConfiguration
impl UnwindSafe for SenderRatchetConfiguration
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