#[non_exhaustive]pub enum SharedIncrementalTargetMaintenanceOutcome {
Missing {
target_dir: PathBuf,
},
Skipped {
target_dir: PathBuf,
lock_wait: Duration,
schedule_check: Duration,
},
Performed {
maintenance: SharedIncrementalTargetMaintenance,
schedule_check: Duration,
},
Failed {
target_dir: PathBuf,
lock_wait: Duration,
message: String,
},
}Expand description
Result of interval-limited shared Cargo target maintenance.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Missing
The configured shared target does not exist, so nothing was created or inspected.
Fields
Skipped
A successful matching maintenance pass is still inside the requested interval.
Fields
Performed
Retention was evaluated under the shared-target lock.
Fields
maintenance: SharedIncrementalTargetMaintenanceCompleted retention report.
Failed
Integrated best-effort maintenance failed without invalidating the Wasm acquisition.
Implementations§
Sourcepub fn target_dir(&self) -> &Path
pub fn target_dir(&self) -> &Path
Configured or canonical target associated with this result.
Sourcepub const fn maintenance(&self) -> Option<&SharedIncrementalTargetMaintenance>
pub const fn maintenance(&self) -> Option<&SharedIncrementalTargetMaintenance>
Completed maintenance report, when retention was evaluated.
Sourcepub const fn was_performed(&self) -> bool
pub const fn was_performed(&self) -> bool
Whether retention was evaluated during this call.
Sourcepub const fn lock_wait(&self) -> Option<Duration>
pub const fn lock_wait(&self) -> Option<Duration>
Time spent waiting for another process, when the target existed.
Sourcepub const fn schedule_check(&self) -> Option<Duration>
pub const fn schedule_check(&self) -> Option<Duration>
Time spent checking the schedule marker, when the target existed.
Sourcepub fn failure_message(&self) -> Option<&str>
pub fn failure_message(&self) -> Option<&str>
Rendered integrated maintenance failure, when best-effort handling preserved acquisition.
Trait Implementations§
Source§fn clone(&self) -> SharedIncrementalTargetMaintenanceOutcome
fn clone(&self) -> SharedIncrementalTargetMaintenanceOutcome
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§
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CustomError for T
impl<T> CustomError for T
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
key and return true if they are equal.