Struct casper_execution_engine::core::engine_state::EngineState[][src]

pub struct EngineState<S> { /* fields omitted */ }

Implementations

impl<S> EngineState<S> where
    S: StateProvider,
    S::Error: Into<Error>, 
[src]

pub fn new(state: S, config: EngineConfig) -> EngineState<S>[src]

pub fn config(&self) -> &EngineConfig[src]

pub fn get_protocol_data(
    &self,
    protocol_version: ProtocolVersion
) -> Result<Option<ProtocolData>, Error>
[src]

pub fn commit_genesis(
    &self,
    correlation_id: CorrelationId,
    genesis_config_hash: Blake2bHash,
    protocol_version: ProtocolVersion,
    ee_config: &ExecConfig
) -> Result<GenesisResult, Error>
[src]

pub fn commit_upgrade(
    &self,
    correlation_id: CorrelationId,
    upgrade_config: UpgradeConfig
) -> Result<UpgradeResult, Error>
[src]

pub fn tracking_copy(
    &self,
    hash: Blake2bHash
) -> Result<Option<TrackingCopy<S::Reader>>, Error>
[src]

pub fn run_query(
    &self,
    correlation_id: CorrelationId,
    query_request: QueryRequest
) -> Result<QueryResult, Error>
[src]

pub fn run_execute(
    &self,
    correlation_id: CorrelationId,
    exec_request: ExecuteRequest
) -> Result<ExecutionResults, RootNotFound>
[src]

pub fn get_purse_balance(
    &self,
    correlation_id: CorrelationId,
    state_hash: Blake2bHash,
    purse_uref: URef
) -> Result<BalanceResult, Error>
[src]

pub fn transfer(
    &self,
    correlation_id: CorrelationId,
    executor: &Executor,
    protocol_version: ProtocolVersion,
    prestate_hash: Blake2bHash,
    blocktime: BlockTime,
    deploy_item: DeployItem,
    proposer: PublicKey
) -> Result<ExecutionResult, RootNotFound>
[src]

pub fn deploy(
    &self,
    correlation_id: CorrelationId,
    executor: &Executor,
    protocol_version: ProtocolVersion,
    prestate_hash: Blake2bHash,
    blocktime: BlockTime,
    deploy_item: DeployItem,
    proposer: PublicKey
) -> Result<ExecutionResult, RootNotFound>
[src]

pub fn apply_effect(
    &self,
    correlation_id: CorrelationId,
    pre_state_hash: Blake2bHash,
    effects: AdditiveMap<Key, Transform>
) -> Result<CommitResult, Error> where
    Error: From<S::Error>, 
[src]

pub fn read_trie(
    &self,
    correlation_id: CorrelationId,
    trie_key: Blake2bHash
) -> Result<Option<Trie<Key, StoredValue>>, Error> where
    Error: From<S::Error>, 
[src]

pub fn put_trie_and_find_missing_descendant_trie_keys(
    &self,
    correlation_id: CorrelationId,
    trie: &Trie<Key, StoredValue>
) -> Result<Vec<Blake2bHash>, Error> where
    Error: From<S::Error>, 
[src]

pub fn missing_trie_keys(
    &self,
    correlation_id: CorrelationId,
    trie_keys: Vec<Blake2bHash>
) -> Result<Vec<Blake2bHash>, Error> where
    Error: From<S::Error>, 
[src]

pub fn get_era_validators(
    &self,
    correlation_id: CorrelationId,
    get_era_validators_request: GetEraValidatorsRequest
) -> Result<EraValidators, GetEraValidatorsError>
[src]

Obtains validator weights for given era.

pub fn get_bids(
    &self,
    correlation_id: CorrelationId,
    get_bids_request: GetBidsRequest
) -> Result<GetBidsResult, Error>
[src]

pub fn commit_step(
    &self,
    correlation_id: CorrelationId,
    step_request: StepRequest
) -> Result<StepResult, Error>
[src]

Trait Implementations

impl<S: Debug> Debug for EngineState<S>[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for EngineState<S> where
    S: RefUnwindSafe

impl<S> Send for EngineState<S> where
    S: Send

impl<S> Sync for EngineState<S> where
    S: Sync

impl<S> Unpin for EngineState<S> where
    S: Unpin

impl<S> UnwindSafe for EngineState<S> where
    S: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Any + Send + Sync

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,