pub enum FinishStrategy {
FlushOnly,
AtomicReplace {
temp_path: PathBuf,
output_path: PathBuf,
},
}Expand description
Strategy for finishing the write operation.
Variants§
FlushOnly
Just flush the writer. Used for:
- Creating new archives
- Appending to uncompressed archives (same file)
AtomicReplace
Atomic replace: swap temp file with original. Used for:
- Appending to compressed archives (rewrite strategy)
Trait Implementations§
Source§impl Clone for FinishStrategy
impl Clone for FinishStrategy
Source§fn clone(&self) -> FinishStrategy
fn clone(&self) -> FinishStrategy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FinishStrategy
impl RefUnwindSafe for FinishStrategy
impl Send for FinishStrategy
impl Sync for FinishStrategy
impl Unpin for FinishStrategy
impl UnwindSafe for FinishStrategy
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