pub fn apply_effect(
        &self,
        correlation_id: CorrelationId,
        pre_state_hash: Digest,
        effects: AdditiveMap<Key, Transform>,
    ) -> Result<Digest, Error>
    where
        Error: From<S::Error>,
    {
        self.state
            .commit(correlation_id, pre_state_hash, effects)
            .map_err(Error::from)
    }
/// Apply effects of the execution.
///
/// This is also refered to as "committing" the effects into the global state. This method has
/// to be run after an execution has been made to persists the effects of it.
///
/// Returns new state root hash.
Apply effects of the execution.
This is also refered to as "committing" the effects into the global state. This method has
to be run after an execution has been made to persists the effects of it.

Returns new state root hash.
Apply effects of the execution . This is also refered to as " committing " the effects into the global state . This method has to be run after an execution has been made to persists the effects of it . Returns new state root hash .
pub fn apply_effect(
        &self,
        correlation_id: CorrelationId,
        pre_state_hash: Digest,
        effects: AdditiveMap<Key, Transform>,
    ) -> Result<Digest, Error>
    where
        Error: From<S::Error>,
    {
        self.state
            .commit(correlation_id, pre_state_hash, effects)
            .map_err(Error::from)
    }
pub fn apply_effect ( & self , correlation_id : CorrelationId , pre_state_hash : Digest , effects : AdditiveMap < Key , Transform > , ) -> Result < Digest , Error > where Error : From < S :: Error > , { self . state . commit ( correlation_id , pre_state_hash , effects ) . map_err ( Error :: from ) }
Apply effects of the execution.
Apply effects of the execution .
&self
correlation_id
CorrelationId
pre_state_hash
Digest
effects
AdditiveMap<Key, Transform>
&self
correlation_id
CorrelationId
pre_state_hash
Digest
effects
AdditiveMap<Key, Transform>