pub trait StateHandler<Hash, State>where
    Hash: Encode + Decode,
    State: Encode + Decode,{
    // Required method
    fn get_state(execution_id: Option<Hash>) -> Result<State, Error>;
}
Expand description

This trait provides access for an executor to read local state from the circuit.

Required Methods§

source

fn get_state(execution_id: Option<Hash>) -> Result<State, Error>

Gets the state for an execution

Implementors§

source§

impl<Hash, AccountId, BlockNumber, Balance> StateHandler<Hash, ExecutionState<Hash, AccountId, BlockNumber, Balance>> for InkProviderwhere Hash: Encode + Decode + Debug + Clone + Default, AccountId: Encode + Decode + Debug + Clone, BlockNumber: Encode + Decode + Debug + Clone, Balance: Encode + Decode + Debug + Clone,

source§

impl<Hash, AccountId, BlockNumber, Balance> StateHandler<Hash, ExecutionState<Hash, AccountId, BlockNumber, Balance>> for Executorwhere Hash: Encode + Decode + Debug + Clone + Default, AccountId: Encode + Decode + Debug + Clone, BlockNumber: Encode + Decode + Debug + Clone, Balance: Encode + Decode + Debug + Clone,