pub struct Workspace { /* private fields */ }Expand description
An isolated copy of a Lake project.
When keep is false the backing temp directory is deleted on drop. When
keep is true the directory is persisted and its path is returned by
Workspace::root for inspection.
Implementations§
Source§impl Workspace
impl Workspace
Sourcepub fn materialize(
lake_root: &Utf8Path,
keep: bool,
options: &CopyOptions,
) -> Result<Self>
pub fn materialize( lake_root: &Utf8Path, keep: bool, options: &CopyOptions, ) -> Result<Self>
Copy lake_root into a fresh temp directory and return the workspace.
The copy follows options.skip_dirs. With keep set, the temp directory
is persisted past drop so its contents can be inspected after a run.
Auto Trait Implementations§
impl Freeze for Workspace
impl RefUnwindSafe for Workspace
impl Send for Workspace
impl Sync for Workspace
impl Unpin for Workspace
impl UnsafeUnpin for Workspace
impl UnwindSafe for Workspace
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