pub struct TruncationOutcome {
pub dropped: u64,
pub kept: u64,
pub oldest_surviving_id: String,
pub last_dropped_id: String,
}Expand description
What one truncation dropped and what it left.
Fields§
§dropped: u64Messages this truncation removed from the front. 0 means the file was left untouched.
kept: u64Messages left in the record.
oldest_surviving_id: StringThe msg_ id of the oldest surviving message, empty when nothing survives with an id.
last_dropped_id: StringThe msg_ id of the newest dropped message, empty when nothing dropped carried one.
Trait Implementations§
Source§impl Clone for TruncationOutcome
impl Clone for TruncationOutcome
Source§fn clone(&self) -> TruncationOutcome
fn clone(&self) -> TruncationOutcome
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 TruncationOutcome
impl Debug for TruncationOutcome
impl Eq for TruncationOutcome
Source§impl PartialEq for TruncationOutcome
impl PartialEq for TruncationOutcome
impl StructuralPartialEq for TruncationOutcome
Auto Trait Implementations§
impl Freeze for TruncationOutcome
impl RefUnwindSafe for TruncationOutcome
impl Send for TruncationOutcome
impl Sync for TruncationOutcome
impl Unpin for TruncationOutcome
impl UnsafeUnpin for TruncationOutcome
impl UnwindSafe for TruncationOutcome
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<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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more