pub enum RetentionClass {
Ephemeral,
Standard,
Durable,
}Expand description
The closed retention-class vocabulary (spec §3.4). Each class changes
GC behaviour; a class that only labels is a taxonomy and does not
belong here. Deliberately excludes: any retention period
(retain_days, expires_at), a legal_hold/hold class, an
audit/compliance class, and any access-time or access-count field —
each refusal is load-bearing and is spelled out in the spec.
Variants§
Ephemeral
GC may drop unreferenced content aggressively, unprompted by policy.
Standard
GC drops unreferenced content when GC is asked to run. The default.
Durable
GC never drops content, referenced or not; it repacks for utilization only. Destruction happens by destroying the whole partition, never incidentally.
Trait Implementations§
Source§impl Clone for RetentionClass
impl Clone for RetentionClass
impl Copy for RetentionClass
Source§impl Debug for RetentionClass
impl Debug for RetentionClass
Source§impl Default for RetentionClass
impl Default for RetentionClass
Source§fn default() -> Self
fn default() -> Self
The documented default (spec §3.4, §4.4) — not applied silently
by crate::store::PartitionStore::create. PartitionSpec::retention_class
is a required field; a caller that wants standard must say so.
This impl exists so standard has one canonical spelling for
callers that choose to use it, not to let create retrofit it.
Source§impl<'de> Deserialize<'de> for RetentionClass
impl<'de> Deserialize<'de> for RetentionClass
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>,
impl Eq for RetentionClass
Source§impl PartialEq for RetentionClass
impl PartialEq for RetentionClass
Source§impl Serialize for RetentionClass
impl Serialize for RetentionClass
impl StructuralPartialEq for RetentionClass
Auto Trait Implementations§
impl Forget for RetentionClass
impl Freeze for RetentionClass
impl Move for RetentionClass
impl RefUnwindSafe for RetentionClass
impl Send for RetentionClass
impl Sync for RetentionClass
impl Unpin for RetentionClass
impl UnsafeUnpin for RetentionClass
impl UnwindSafe for RetentionClass
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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