MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / update_trunk_state

Method update_trunk_state

atomic-core/src/crdt/apply/trunk.rs:414–423  ·  view source on GitHub ↗
(
            &mut self,
            id: TrunkId,
            state: TrunkState,
        )

Source from the content-addressed store, hash-verified

412 }
413
414 fn update_trunk_state(
415 &mut self,
416 id: TrunkId,
417 state: TrunkState,
418 ) -> Result<(), Self::Error> {
419 if let Some(trunk) = self.trunks.get_mut(&id) {
420 trunk.set_state(state);
421 }
422 Ok(())
423 }
424
425 fn update_trunk_path(&mut self, id: TrunkId, new_path: &str) -> Result<(), Self::Error> {
426 if let Some(trunk) = self.trunks.get_mut(&id) {

Callers 2

apply_deleteFunction · 0.45
apply_undeleteFunction · 0.45

Calls 2

get_mutMethod · 0.80
set_stateMethod · 0.45

Tested by

no test coverage detected