pub struct GroupConfig {
pub maximum_forward_distance: u32,
pub out_of_order_tolerance: u32,
}
Expand description
Configuration for the message ratchets used in this group.
Fields§
§maximum_forward_distance: u32
This parameter defines how many incoming messages can be skipped. This is useful if the application drops messages.
out_of_order_tolerance: u32
This parameter defines a window for which decryption secrets are kept. This is useful in case the ratchet 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.
Trait Implementations§
Source§impl Clone for GroupConfig
impl Clone for GroupConfig
Source§fn clone(&self) -> GroupConfig
fn clone(&self) -> GroupConfig
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 GroupConfig
impl Debug for GroupConfig
Source§impl Default for GroupConfig
impl Default for GroupConfig
Source§impl<'de> Deserialize<'de> for GroupConfig
impl<'de> Deserialize<'de> for GroupConfig
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 for GroupConfig
impl PartialEq for GroupConfig
Source§impl Serialize for GroupConfig
impl Serialize for GroupConfig
impl Eq for GroupConfig
impl StructuralPartialEq for GroupConfig
Auto Trait Implementations§
impl Freeze for GroupConfig
impl RefUnwindSafe for GroupConfig
impl Send for GroupConfig
impl Sync for GroupConfig
impl Unpin for GroupConfig
impl UnwindSafe for GroupConfig
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