pub fn commit_transforms(
        &mut self,
        pre_state_hash: Digest,
        effects: AdditiveMap<Key, Transform>,
    ) -> &mut Self {
        let post_state_hash = self
            .engine_state
            .apply_effect(CorrelationId::new(), pre_state_hash, effects)
            .expect("should commit");
        self.post_state_hash = Some(post_state_hash);
        self
    }
/// Runs a commit request, expects a successful response, and
/// overwrites existing cached post state hash with a new one.
Runs a commit request, expects a successful response, and
overwrites existing cached post state hash with a new one.
Runs a commit request expects a successful response and overwrites existing cached post state hash with a new one .
pub fn commit_transforms(
        &mut self,
        pre_state_hash: Digest,
        effects: AdditiveMap<Key, Transform>,
    ) -> &mut Self {
        let post_state_hash = self
            .engine_state
            .apply_effect(CorrelationId::new(), pre_state_hash, effects)
            .expect("should commit");
        self.post_state_hash = Some(post_state_hash);
        self
    }
pub fn commit_transforms ( & mut self , pre_state_hash : Digest , effects : AdditiveMap < Key , Transform > , ) -> & mut Self { let post_state_hash = self . engine_state . apply_effect ( CorrelationId :: new ( ) , pre_state_hash , effects ) . expect ( " " ) ; self . post_state_hash = Some ( post_state_hash ) ; self }
Runs a commit request, expects a successful response, and
overwrites existing cached post state hash with a new one.
Runs a commit request expects a successful response and overwrites existing cached post state hash with a new one .
&mut self
pre_state_hash
Digest
effects
AdditiveMap<Key, Transform>
&mut self
pre_state_hash
Digest
effects
AdditiveMap<Key, Transform>