pub enum BackupStrategy {
HardLinkOrCopy,
Copy,
}Expand description
Strategy used to retain the last-confirmed executable for rollback.
Variants§
HardLinkOrCopy
Prefer a hard link and copy bytes when the filesystem rejects links.
Copy
Always copy bytes and preserve the executable permission mode.
Trait Implementations§
Source§impl Clone for BackupStrategy
impl Clone for BackupStrategy
Source§fn clone(&self) -> BackupStrategy
fn clone(&self) -> BackupStrategy
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 moreSource§impl Debug for BackupStrategy
impl Debug for BackupStrategy
Source§impl PartialEq for BackupStrategy
impl PartialEq for BackupStrategy
Source§fn eq(&self, other: &BackupStrategy) -> bool
fn eq(&self, other: &BackupStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for BackupStrategy
impl Eq for BackupStrategy
impl StructuralPartialEq for BackupStrategy
Auto Trait Implementations§
impl Freeze for BackupStrategy
impl RefUnwindSafe for BackupStrategy
impl Send for BackupStrategy
impl Sync for BackupStrategy
impl Unpin for BackupStrategy
impl UnsafeUnpin for BackupStrategy
impl UnwindSafe for BackupStrategy
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.