pub struct CopyBackend;Trait Implementations§
Source§impl CloneBackend for CopyBackend
impl CloneBackend for CopyBackend
Source§fn private_size(&self, path: &Path) -> Option<u64>
fn private_size(&self, path: &Path) -> Option<u64>
Nothing is shared, so every byte is private.
fn check_supported(&self, _path: &Path) -> Result<()>
Source§fn clone_dir(&self, src: &Path, dst: &Path) -> Result<()>
fn clone_dir(&self, src: &Path, dst: &Path) -> Result<()>
Makes
dst a clone of src; dst must not exist.Source§fn create_dir(&self, path: &Path) -> Result<()>
fn create_dir(&self, path: &Path) -> Result<()>
Makes an empty directory a build writes into and later clones are made from.
Source§fn remove_dir(&self, path: &Path) -> Result<()>
fn remove_dir(&self, path: &Path) -> Result<()>
Removes a clone or generation directory and everything in it; a missing path is
Ok(()).Source§fn rename_dir(&self, from: &Path, to: &Path) -> Result<()>
fn rename_dir(&self, from: &Path, to: &Path) -> Result<()>
Renames a clone or generation directory within the same parent tree.
Source§fn copy_dir(&self, src: &Path, dst: &Path) -> Result<()>
fn copy_dir(&self, src: &Path, dst: &Path) -> Result<()>
Makes
dst (which must not exist) a template generation copied from src, a generation
or a clone. Unlike clone_dir, the result must not depend on src staying around.Source§fn take_kept(&self) -> Vec<PathBuf>
fn take_kept(&self) -> Vec<PathBuf>
Folders
remove_dir left in place (and returned Ok) because clones still depend on
them, since the last call; only ZFS keeps any. gc reports them and tries again later.Source§fn external_mountpoint(&self, _dataset: &str) -> Result<PathBuf>
fn external_mountpoint(&self, _dataset: &str) -> Result<PathBuf>
ZFS only: where
dataset, a dataset Mitosis does not own (a running source), is mounted.Auto Trait Implementations§
impl Freeze for CopyBackend
impl RefUnwindSafe for CopyBackend
impl Send for CopyBackend
impl Sync for CopyBackend
impl Unpin for CopyBackend
impl UnsafeUnpin for CopyBackend
impl UnwindSafe for CopyBackend
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