pub struct TransferOptions {
pub conflict_resolution: Option<ConflictResolution>,
pub replace_policy: ReplacePolicy,
pub preserve_timestamps: bool,
pub preserve_xattrs: bool,
}Expand description
Options for copy and move.
Fields§
§conflict_resolution: Option<ConflictResolution>Answer for every conflict; None asks through TransferResult::Conflict.
replace_policy: ReplacePolicyWhat happens to an existing item the user chose to overwrite.
preserve_timestamps: boolPreserve access and modification times.
preserve_xattrs: boolPreserve extended attributes (Unix).
Trait Implementations§
Source§impl Clone for TransferOptions
impl Clone for TransferOptions
impl Copy for TransferOptions
Source§impl Debug for TransferOptions
impl Debug for TransferOptions
Auto Trait Implementations§
impl Freeze for TransferOptions
impl RefUnwindSafe for TransferOptions
impl Send for TransferOptions
impl Sync for TransferOptions
impl Unpin for TransferOptions
impl UnsafeUnpin for TransferOptions
impl UnwindSafe for TransferOptions
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