pub enum SaveOutcome {
Persisted {
compressed_bytes: u64,
},
SkippedTooLarge {
compressed_bytes: u64,
limit_bytes: u64,
},
}Expand description
Outcome of persisting a BM25 index to disk. Distinguishes a real write from a size-capped refusal so callers never mistake “refused to persist” for success (the bug behind the perpetual “index warming” report, issue #249).
Variants§
Persisted
Written to disk. Carries the compressed (zstd) size in bytes.
SkippedTooLarge
Built fine but NOT written — the compressed size exceeds the disk ceiling. The in-memory index is still usable for this process; callers should surface the remedy (raise the cap / add ignore patterns) instead of silently rebuilding on every call.
Trait Implementations§
Source§impl Clone for SaveOutcome
impl Clone for SaveOutcome
Source§fn clone(&self) -> SaveOutcome
fn clone(&self) -> SaveOutcome
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 SaveOutcome
Source§impl Debug for SaveOutcome
impl Debug for SaveOutcome
impl Eq for SaveOutcome
Source§impl PartialEq for SaveOutcome
impl PartialEq for SaveOutcome
Source§fn eq(&self, other: &SaveOutcome) -> bool
fn eq(&self, other: &SaveOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SaveOutcome
Auto Trait Implementations§
impl Freeze for SaveOutcome
impl RefUnwindSafe for SaveOutcome
impl Send for SaveOutcome
impl Sync for SaveOutcome
impl Unpin for SaveOutcome
impl UnsafeUnpin for SaveOutcome
impl UnwindSafe for SaveOutcome
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.impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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