pub enum CleanupPolicy {
Segment(SegmentBasedPolicy),
}
Variants§
Segment(SegmentBasedPolicy)
Implementations§
source§impl CleanupPolicy
impl CleanupPolicy
pub fn retention_secs(&self) -> u32
Trait Implementations§
source§impl Clone for CleanupPolicy
impl Clone for CleanupPolicy
source§fn clone(&self) -> CleanupPolicy
fn clone(&self) -> CleanupPolicy
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CleanupPolicy
impl Debug for CleanupPolicy
source§impl Decoder for CleanupPolicy
impl Decoder for CleanupPolicy
source§impl Default for CleanupPolicy
impl Default for CleanupPolicy
source§impl Encoder for CleanupPolicy
impl Encoder for CleanupPolicy
source§impl PartialEq for CleanupPolicy
impl PartialEq for CleanupPolicy
source§fn eq(&self, other: &CleanupPolicy) -> bool
fn eq(&self, other: &CleanupPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CleanupPolicy
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 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
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
Compare self to
key
and return true
if they are equal.