pub enum Repair {
MakeDir(PathBuf),
Chmod(PathBuf, u32),
ClearLocks(Vec<PathBuf>),
DisablePlugin(String),
ForgetTask(PathBuf),
}Expand description
A repair that is safe to apply without asking.
Variants§
MakeDir(PathBuf)
mkdir -p
Chmod(PathBuf, u32)
chmod <mode>, for a file that holds something private.
ClearLocks(Vec<PathBuf>)
Remove the session lock files that no process holds a lock on.
DisablePlugin(String)
Take a plugin out of [plugins] enabled, which is what makes the next run start clean.
ForgetTask(PathBuf)
Forget a background task whose process is gone. Its session and its log stay: what is dropped is the registry entry that claims to be alive.
Implementations§
Trait Implementations§
impl Eq for Repair
impl StructuralPartialEq for Repair
Auto Trait Implementations§
impl Forget for Repair
impl Freeze for Repair
impl Move for Repair
impl RefUnwindSafe for Repair
impl Send for Repairwhere
RawVecInner: Send,
impl Sync for Repairwhere
RawVecInner: Sync,
impl Unpin for Repair
impl UnsafeUnpin for Repairwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<PathBuf>: UnsafeUnpin,
impl UnwindSafe for Repairwhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.