pub enum SparseOutcome {
CacheHit,
Built {
store_error: Option<CacheError>,
},
}Expand description
Outcome of load_or_build: whether the on-disk cache satisfied
the request or a fresh manifest had to be built.
Variants§
CacheHit
(tree_hash, filter_hash) was already cached — the expensive
build_sparse + verify_sparse Merkle-bitmap reconstruction
was skipped entirely.
Built
No usable cache entry existed (miss, filter mismatch, or a
corrupt/undecodable entry); a fresh manifest was built and
self-verified. store_error is Some if persisting it back to
the cache failed (best-effort — the caller may want to warn on
stderr, as store’s own doc explains this is never fatal).
Fields
§
store_error: Option<CacheError>Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SparseOutcome
impl !UnwindSafe for SparseOutcome
impl Freeze for SparseOutcome
impl Send for SparseOutcome
impl Sync for SparseOutcome
impl Unpin for SparseOutcome
impl UnsafeUnpin for SparseOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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