pub struct ContextPopulator { /* private fields */ }Expand description
Context populator - copies files from source to destination
Implementations§
Source§impl ContextPopulator
impl ContextPopulator
pub fn new<P: AsRef<Path>, Q: AsRef<Path>>(source: P, dest: Q) -> Self
Sourcepub fn populate(&self) -> Result<()>
pub fn populate(&self) -> Result<()>
Populate the destination with files from source
This implements the transition: mounted -> populated
Sourcepub fn validate_source_tree(&self) -> Result<()>
pub fn validate_source_tree(&self) -> Result<()>
Validate a source tree without copying it.
Used by bind-mount mode so the host tree gets the same preflight checks as copy mode.
Auto Trait Implementations§
impl Freeze for ContextPopulator
impl RefUnwindSafe for ContextPopulator
impl Send for ContextPopulator
impl Sync for ContextPopulator
impl Unpin for ContextPopulator
impl UnsafeUnpin for ContextPopulator
impl UnwindSafe for ContextPopulator
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