pub struct Planner<'a> { /* private fields */ }Expand description
Decides what to do, given the world as it is.
Implementations§
Source§impl<'a> Planner<'a>
impl<'a> Planner<'a>
pub fn new(layout: &'a Layout, lock: &'a Lock, support: LinkSupport) -> Self
Sourcepub fn with_adopt(self, adopt: bool) -> Self
pub fn with_adopt(self, adopt: bool) -> Self
Permits moving user content from a provider path into the canonical location. Off by default: adoption is the one operation that relocates data the user did not put there, so it must be asked for explicitly.
pub fn plan( &self, providers: &[&Provider], ws: &dyn Workspace, ) -> FsResult<Plan>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Planner<'a>
impl<'a> RefUnwindSafe for Planner<'a>
impl<'a> Send for Planner<'a>
impl<'a> Sync for Planner<'a>
impl<'a> Unpin for Planner<'a>
impl<'a> UnsafeUnpin for Planner<'a>
impl<'a> UnwindSafe for Planner<'a>
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