pub struct Installer<'a> { /* private fields */ }Expand description
A skill, the program it belongs to, and the machine to put it on.
Implementations§
Source§impl<'a> Installer<'a>
impl<'a> Installer<'a>
Sourcepub const fn new(
catalog: &'a Catalog,
env: &'a Environment,
skill: &'a Skill,
program: &'a Program,
) -> Self
pub const fn new( catalog: &'a Catalog, env: &'a Environment, skill: &'a Skill, program: &'a Program, ) -> Self
An installer for one skill of one program.
Sourcepub fn assess(&self, consent: &Consent) -> Result<Assessment, PlanError>
pub fn assess(&self, consent: &Consent) -> Result<Assessment, PlanError>
What would happen, place by place. Writes nothing.
§Errors
Returns an error only when no plan can be made.
Sourcepub fn apply(
&self,
assessment: &Assessment,
approval: &Approval,
) -> Vec<Outcome>
pub fn apply( &self, assessment: &Assessment, approval: &Approval, ) -> Vec<Outcome>
Install where approved, overwrite where explicitly asked, and update whatever needs no approval.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Installer<'a>
impl<'a> RefUnwindSafe for Installer<'a>
impl<'a> Send for Installer<'a>
impl<'a> Sync for Installer<'a>
impl<'a> Unpin for Installer<'a>
impl<'a> UnsafeUnpin for Installer<'a>
impl<'a> UnwindSafe for Installer<'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