pub struct Planner { /* private fields */ }Implementations§
Source§impl Planner
impl Planner
pub fn new(source_root: SourceRoot, binary: impl Into<PathBuf>) -> Planner
Sourcepub fn preset(self, preset: Preset) -> Planner
pub fn preset(self, preset: Preset) -> Planner
Record which preset the runtime policy came from, for the manifest.
pub fn install_as(self, path: impl Into<PathBuf>) -> Planner
Sourcepub fn add_binary(
self,
binary: impl Into<PathBuf>,
install_path: impl Into<PathBuf>,
) -> Planner
pub fn add_binary( self, binary: impl Into<PathBuf>, install_path: impl Into<PathBuf>, ) -> Planner
Add another executable and its destination to this bundle.
pub fn runtime_policy(self, policy: RuntimePolicy) -> Planner
pub fn dependency_policy(self, policy: DependencyPolicy) -> Planner
pub fn library_paths(self, paths: Vec<PathBuf>) -> Planner
Sourcepub fn plan(&self) -> Result<BundlePlan>
pub fn plan(&self) -> Result<BundlePlan>
Phase one: resolve, validate, then describe the output. Nothing is
written until crate::RootFsBuilder or crate::TarBuilder gets the
plan.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Planner
impl RefUnwindSafe for Planner
impl Send for Planner
impl Sync for Planner
impl Unpin for Planner
impl UnsafeUnpin for Planner
impl UnwindSafe for Planner
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