pub enum CleanupPolicy {
Delete,
Compact,
}Expand description
Per-topic policy for what to do with old log segments.
Delete (default): age- or size-based segment deletion via
crate::retention. Compact: newest-wins dedup-by-key,
implemented in crate::compact and invoked through
crate::Log::compact.
Variants§
Trait Implementations§
Source§impl Clone for CleanupPolicy
impl Clone for CleanupPolicy
Source§fn clone(&self) -> CleanupPolicy
fn clone(&self) -> CleanupPolicy
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 moreimpl Copy for CleanupPolicy
Source§impl Debug for CleanupPolicy
impl Debug for CleanupPolicy
Source§impl Default for CleanupPolicy
impl Default for CleanupPolicy
Source§fn default() -> CleanupPolicy
fn default() -> CleanupPolicy
Returns the “default value” for a type. Read more
impl Eq for CleanupPolicy
Source§impl PartialEq for CleanupPolicy
impl PartialEq for CleanupPolicy
Source§fn eq(&self, other: &CleanupPolicy) -> bool
fn eq(&self, other: &CleanupPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CleanupPolicy
Auto Trait Implementations§
impl Freeze for CleanupPolicy
impl RefUnwindSafe for CleanupPolicy
impl Send for CleanupPolicy
impl Sync for CleanupPolicy
impl Unpin for CleanupPolicy
impl UnsafeUnpin for CleanupPolicy
impl UnwindSafe for CleanupPolicy
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