pub enum FileMoveMethod {
Rename,
CopyAndDelete,
}Expand description
A method used for moving a file.
Variants§
Rename
The source file was renamed to the destination file.
This is very highly performant on most file systems, to the point of being near instantaneous.
CopyAndDelete
The source file was copied to the destination, and the source file was deleted afterwards.
This is generally used only if Self::Rename is impossible,
and is as fast as writes normally are.
Trait Implementations§
Source§impl Clone for FileMoveMethod
impl Clone for FileMoveMethod
Source§fn clone(&self) -> FileMoveMethod
fn clone(&self) -> FileMoveMethod
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 moreSource§impl Debug for FileMoveMethod
impl Debug for FileMoveMethod
Source§impl PartialEq for FileMoveMethod
impl PartialEq for FileMoveMethod
impl Copy for FileMoveMethod
impl Eq for FileMoveMethod
impl StructuralPartialEq for FileMoveMethod
Auto Trait Implementations§
impl Freeze for FileMoveMethod
impl RefUnwindSafe for FileMoveMethod
impl Send for FileMoveMethod
impl Sync for FileMoveMethod
impl Unpin for FileMoveMethod
impl UnwindSafe for FileMoveMethod
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