pub enum LogRetention {
Days(u64),
MaxEntries(u64),
MaxBytes(u64),
Forever,
}Expand description
Retention policy for log collections.
Variants§
Days(u64)
Keep entries for N days, then auto-delete.
MaxEntries(u64)
Keep at most N entries (oldest evicted first).
MaxBytes(u64)
Keep total size under N bytes (oldest evicted first).
Forever
Keep forever (no automatic cleanup).
Trait Implementations§
Source§impl Clone for LogRetention
impl Clone for LogRetention
Source§fn clone(&self) -> LogRetention
fn clone(&self) -> LogRetention
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 Debug for LogRetention
impl Debug for LogRetention
Source§impl Default for LogRetention
impl Default for LogRetention
Source§fn default() -> LogRetention
fn default() -> LogRetention
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LogRetention
impl RefUnwindSafe for LogRetention
impl Send for LogRetention
impl Sync for LogRetention
impl Unpin for LogRetention
impl UnsafeUnpin for LogRetention
impl UnwindSafe for LogRetention
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request