pub struct ConfiguredWarmStartStore { /* private fields */ }Expand description
A best-effort warm-start store rooted at an explicit caller-owned path.
Persistence is an optimization, so an unavailable filesystem never makes a fit fail. The first attempted use opens the exact configured root and records either the store or its permanent absence for this fit. Every clone observes that same decision, preventing repeated directory scans and repeated diagnostics.
Implementations§
Source§impl ConfiguredWarmStartStore
impl ConfiguredWarmStartStore
Sourcepub fn new(root: PathBuf, options: StoreOptions) -> Self
pub fn new(root: PathBuf, options: StoreOptions) -> Self
Configure a store without touching the filesystem.
Sourcepub fn root(&self) -> &Path
pub fn root(&self) -> &Path
The exact root supplied by the caller. No canonicalization, joining, or environment-dependent relocation is performed.
Sourcepub fn store(&self) -> Option<&WarmStartStore>
pub fn store(&self) -> Option<&WarmStartStore>
Return the shared opened store, or None when persistence is
unavailable.
This is the sole owner of the open-failure decision and diagnostic. Failures are memoized: a fit proceeds cold and never repeatedly probes a root that already refused the configured store.
Sourcepub fn open_session(&self, key: Fingerprint) -> Option<Arc<Session>>
pub fn open_session(&self, key: Fingerprint) -> Option<Arc<Session>>
Open a keyed session governed by this capability’s shared availability decision.
Session reads and writes report filesystem refusal back to this owner, so one failed outer-iterate checkpoint disables every record, artifact, and session operation belonging to the fit.
Permanently disable this fit’s configured persistence after the filesystem refuses an operation.
The first refusal owns the sole diagnostic; subsequent loads/stores and every clone become cold no-ops. Callers should use this only for environmental I/O failures, not serialization or contract defects.
Trait Implementations§
Source§impl Clone for ConfiguredWarmStartStore
impl Clone for ConfiguredWarmStartStore
Source§fn clone(&self) -> ConfiguredWarmStartStore
fn clone(&self) -> ConfiguredWarmStartStore
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ConfiguredWarmStartStore
impl RefUnwindSafe for ConfiguredWarmStartStore
impl Send for ConfiguredWarmStartStore
impl Sync for ConfiguredWarmStartStore
impl Unpin for ConfiguredWarmStartStore
impl UnsafeUnpin for ConfiguredWarmStartStore
impl UnwindSafe for ConfiguredWarmStartStore
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
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> ⓘ
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