Struct NeedsFulfillment
pub struct NeedsFulfillment { /* private fields */ }Expand description
Tracks need fulfillment per phase and recommends repair actions.
Implementations§
§impl NeedsFulfillment
impl NeedsFulfillment
pub fn new(config: RepairConfig) -> NeedsFulfillment
pub fn new(config: RepairConfig) -> NeedsFulfillment
Create with the given configuration.
pub fn evaluate(
&mut self,
phase: &str,
needs: &[String],
state: &State,
) -> RepairAction
pub fn evaluate( &mut self, phase: &str, needs: &[String], state: &State, ) -> RepairAction
Evaluate whether repair action is needed for the current phase.
Call after extractors run. Returns the recommended action.
pub fn reset_all(&mut self)
pub fn reset_all(&mut self)
Reset all tracking.
Auto Trait Implementations§
impl Freeze for NeedsFulfillment
impl RefUnwindSafe for NeedsFulfillment
impl Send for NeedsFulfillment
impl Sync for NeedsFulfillment
impl Unpin for NeedsFulfillment
impl UnwindSafe for NeedsFulfillment
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