pub struct CopyOption { /* 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 CopyOption
impl CopyOption
pub fn new() -> CopyOption
Sourcepub fn follow_source_symlinks(self, follow: bool) -> CopyOption
pub fn follow_source_symlinks(self, follow: bool) -> CopyOption
Follow final source symlinks when true; otherwise recreate the links.
pub fn follows_source_symlinks(self) -> bool
Trait Implementations§
Source§impl Clone for CopyOption
impl Clone for CopyOption
Source§fn clone(&self) -> CopyOption
fn clone(&self) -> CopyOption
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 moreimpl Copy for CopyOption
Source§impl Debug for CopyOption
impl Debug for CopyOption
Source§impl Default for CopyOption
impl Default for CopyOption
Source§fn default() -> CopyOption
fn default() -> CopyOption
Returns the “default value” for a type. Read more
impl Eq for CopyOption
Source§impl PartialEq for CopyOption
impl PartialEq for CopyOption
impl StructuralPartialEq for CopyOption
Auto Trait Implementations§
impl Freeze for CopyOption
impl RefUnwindSafe for CopyOption
impl Send for CopyOption
impl Sync for CopyOption
impl Unpin for CopyOption
impl UnsafeUnpin for CopyOption
impl UnwindSafe for CopyOption
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