pub struct CopyOptions { /* private fields */ }Expand description
Options for whole-file copies through crate::api::Vfsi::vcopy.
Source final symlinks are followed by default; ancestor symlinks use normal
namespace resolution. This is not a snapshot. When preserving a source
symlink, its link text is copied and an existing destination is not replaced.
Destination symlinks for data copies retain normal following behavior.
Implementations§
Source§impl CopyOptions
impl CopyOptions
pub fn new() -> Self
Sourcepub fn with_follow_source_symlinks(self, follow: bool) -> Self
pub fn with_follow_source_symlinks(self, follow: bool) -> Self
Follow final source symlinks when true; otherwise recreate the links.
pub fn follow_source_symlinks(self) -> bool
Trait Implementations§
Source§impl Clone for CopyOptions
impl Clone for CopyOptions
impl Copy for CopyOptions
Source§impl Debug for CopyOptions
impl Debug for CopyOptions
Source§impl Default for CopyOptions
impl Default for CopyOptions
impl Eq for CopyOptions
Source§impl PartialEq for CopyOptions
impl PartialEq for CopyOptions
impl StructuralPartialEq for CopyOptions
Auto Trait Implementations§
impl Freeze for CopyOptions
impl RefUnwindSafe for CopyOptions
impl Send for CopyOptions
impl Sync for CopyOptions
impl Unpin for CopyOptions
impl UnsafeUnpin for CopyOptions
impl UnwindSafe for CopyOptions
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