MCPcopy Create free account
hub / github.com/JamieMason/syncpack / set_state

Method set_state

src/instance.rs:216–220  ·  view source on GitHub ↗

Record what syncpack has determined the state of this instance is and what its expected specifier should be

(&self, state: InstanceState, expected_specifier: &Rc<Specifier>)

Source from the content-addressed store, hash-verified

214 /// Record what syncpack has determined the state of this instance is and what
215 /// its expected specifier should be
216 fn set_state(&self, state: InstanceState, expected_specifier: &Rc<Specifier>) -> &Self {
217 *self.state.borrow_mut() = state;
218 *self.expected_specifier.borrow_mut() = Some(Rc::clone(expected_specifier));
219 self
220 }
221
222 /// Mark this instance as already having a valid specifier
223 pub fn mark_valid(&self, state: ValidInstance, expected_specifier: &Rc<Specifier>) -> &Self {

Callers 6

mark_validMethod · 0.80
mark_suspectMethod · 0.80
mark_fixableMethod · 0.80
mark_conflictMethod · 0.80
mark_unfixableMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected