pub enum PersistentPublicationState {
Async(Arc<PersistentResultCacheWriter>),
Disabled(PersistenceDisabledReason),
}Expand description
Explicit persistent-publication state of a result cache. Replaces the
implicit Option<writer> semantics: the query path either enqueues onto
the background writer or skips persistent publication (keeping the
in-memory entry and incrementing the skip metric). There is no
query-thread synchronous write fallback — the persistent cache is
disposable optimization state and its loss degrades to a recompute.
Variants§
Async(Arc<PersistentResultCacheWriter>)
Background writer installed; publication is asynchronous.
Disabled(PersistenceDisabledReason)
Publication unavailable; query-path persists are skipped.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PersistentPublicationState
impl RefUnwindSafe for PersistentPublicationState
impl Send for PersistentPublicationState
impl Sync for PersistentPublicationState
impl Unpin for PersistentPublicationState
impl UnsafeUnpin for PersistentPublicationState
impl UnwindSafe for PersistentPublicationState
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> 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