pub struct RootFsBuilder { /* private fields */ }Implementations§
Source§impl RootFsBuilder
impl RootFsBuilder
pub fn new(output: impl Into<PathBuf>) -> RootFsBuilder
Sourcepub fn clean(self, clean: bool) -> RootFsBuilder
pub fn clean(self, clean: bool) -> RootFsBuilder
Exclude an existing output directory from the staged replacement.
Sourcepub fn apply(&self, plan: &BundlePlan) -> Result<RootFsReport>
pub fn apply(&self, plan: &BundlePlan) -> Result<RootFsReport>
Materialize a plan into a sibling staging directory, then publish it. A failed build leaves an existing output untouched and exposes no new output when the destination did not exist.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RootFsBuilder
impl RefUnwindSafe for RootFsBuilder
impl Send for RootFsBuilder
impl Sync for RootFsBuilder
impl Unpin for RootFsBuilder
impl UnsafeUnpin for RootFsBuilder
impl UnwindSafe for RootFsBuilder
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