pub struct VcDerivationEpochDeletion { /* private fields */ }Available on crate feature
virtual-clients-draft and (32-bit or 64-bit) only.Expand description
Selects the derivation epochs MlsGroup::delete_vc_derivation_epochs()
deletes: those superseded before a point in time, optionally capped to a
number of surviving epochs. An epoch is superseded when the next one is
registered. The newest epoch is never selected.
Implementations§
Source§impl VcDerivationEpochDeletion
impl VcDerivationEpochDeletion
Sourcepub fn older_than_duration(duration: Duration) -> Self
pub fn older_than_duration(duration: Duration) -> Self
Delete all derivation epochs superseded more than duration ago.
Sourcepub fn before_timestamp(timestamp: SystemTime) -> Self
pub fn before_timestamp(timestamp: SystemTime) -> Self
Delete all derivation epochs superseded before timestamp.
Sourcepub fn max_epochs(self, max_epochs: usize) -> Self
pub fn max_epochs(self, max_epochs: usize) -> Self
Additionally cap the number of derivation epochs that survive.
Auto Trait Implementations§
impl Freeze for VcDerivationEpochDeletion
impl RefUnwindSafe for VcDerivationEpochDeletion
impl Send for VcDerivationEpochDeletion
impl Sync for VcDerivationEpochDeletion
impl Unpin for VcDerivationEpochDeletion
impl UnsafeUnpin for VcDerivationEpochDeletion
impl UnwindSafe for VcDerivationEpochDeletion
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> 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