pub enum PastEpochDeletionPolicy {
MaxEpochs(usize),
KeepAll,
}Available on 32-bit or 64-bit only.
Expand description
Configures the automatic deletion of past epoch secrets.
WARNING
Policies other than MaxEpochs(0) enable the storage of message secrets from past epochs.
It is a trade-off between functionality and forward secrecy and should only be enabled
if the Delivery Service cannot guarantee that application messages will be sent in
the same epoch in which they were generated. The number for max_epochs should be
as low as possible.
Variants§
MaxEpochs(usize)
Keep at most n past epoch secrets.
KeepAll
Keep all past epoch secrets.
NOTE: The application is responsible for deleting past epoch secrets when
KeepAll is set. Past epoch secrets can be deleted manually using:
Trait Implementations§
Source§impl Clone for PastEpochDeletionPolicy
impl Clone for PastEpochDeletionPolicy
Source§fn clone(&self) -> PastEpochDeletionPolicy
fn clone(&self) -> PastEpochDeletionPolicy
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 PastEpochDeletionPolicy
impl Debug for PastEpochDeletionPolicy
Source§impl Default for PastEpochDeletionPolicy
impl Default for PastEpochDeletionPolicy
Source§impl<'de> Deserialize<'de> for PastEpochDeletionPolicy
impl<'de> Deserialize<'de> for PastEpochDeletionPolicy
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 PastEpochDeletionPolicy
impl PartialEq for PastEpochDeletionPolicy
Source§impl Serialize for PastEpochDeletionPolicy
impl Serialize for PastEpochDeletionPolicy
impl Eq for PastEpochDeletionPolicy
impl StructuralPartialEq for PastEpochDeletionPolicy
Auto Trait Implementations§
impl Freeze for PastEpochDeletionPolicy
impl RefUnwindSafe for PastEpochDeletionPolicy
impl Send for PastEpochDeletionPolicy
impl Sync for PastEpochDeletionPolicy
impl Unpin for PastEpochDeletionPolicy
impl UnsafeUnpin for PastEpochDeletionPolicy
impl UnwindSafe for PastEpochDeletionPolicy
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<T> Classify for T
impl<T> Classify for T
type Classified = T
fn classify(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Declassify for T
impl<T> Declassify for T
type Declassified = T
fn declassify(self) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more