pub enum PastEpochDeletionPolicy {
MaxEpochs(usize),
KeepAll,
}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.
If the MaxEpochs policy is set to MaxEpochs(usize::MAX), if will be returned as KeepAll after deserialization due to backwards compatibility constraints.
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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
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
§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>
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>
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