#[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,
},
}Expand description
Result of interval-limited shared Cargo target maintenance.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.
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.
Trait Implementations§
Source§fn clone(&self) -> SharedIncrementalTargetMaintenanceOutcome
fn clone(&self) -> SharedIncrementalTargetMaintenanceOutcome
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 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
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> 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
Compare self to
key and return true if they are equal.