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() -> CopyOptions
Sourcepub fn with_follow_source_symlinks(self, follow: bool) -> CopyOptions
pub fn with_follow_source_symlinks(self, follow: bool) -> CopyOptions
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
Source§fn clone(&self) -> CopyOptions
fn clone(&self) -> CopyOptions
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 CopyOptions
Source§impl Debug for CopyOptions
impl Debug for CopyOptions
Source§impl Default for CopyOptions
impl Default for CopyOptions
Source§fn default() -> CopyOptions
fn default() -> CopyOptions
Returns the “default value” for a type. Read more
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