pub enum VcDerivationEpochRetentionPolicy {
MaxEpochs(usize),
KeepAll,
}Available on crate feature
virtual-clients-draft and (32-bit or 64-bit) only.Expand description
Configures how many virtual-clients derivation epochs an emulation group keeps, so that delayed messages from sibling emulator clients can still be processed.
Registering a new derivation epoch drops the epochs beyond the window. Their key material is deleted unless a higher-level group or a retained KeyPackage still references it.
Variants§
MaxEpochs(usize)
Keep at most n derivation epochs.
KeepAll
Keep every derivation epoch. The application deletes them with
MlsGroup::delete_vc_derivation_epochs().
Trait Implementations§
Source§impl Clone for VcDerivationEpochRetentionPolicy
impl Clone for VcDerivationEpochRetentionPolicy
Source§fn clone(&self) -> VcDerivationEpochRetentionPolicy
fn clone(&self) -> VcDerivationEpochRetentionPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de> Deserialize<'de> for VcDerivationEpochRetentionPolicy
impl<'de> Deserialize<'de> for VcDerivationEpochRetentionPolicy
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
impl Eq for VcDerivationEpochRetentionPolicy
impl StructuralPartialEq for VcDerivationEpochRetentionPolicy
Auto Trait Implementations§
impl Freeze for VcDerivationEpochRetentionPolicy
impl RefUnwindSafe for VcDerivationEpochRetentionPolicy
impl Send for VcDerivationEpochRetentionPolicy
impl Sync for VcDerivationEpochRetentionPolicy
impl Unpin for VcDerivationEpochRetentionPolicy
impl UnsafeUnpin for VcDerivationEpochRetentionPolicy
impl UnwindSafe for VcDerivationEpochRetentionPolicy
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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