[][src]Struct casperlabs_engine_core::engine_state::EngineState

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

Methods

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 wasm_costs(
    &self,
    protocol_version: ProtocolVersion
) -> Result<Option<WasmCosts>, Error>
[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: GenesisConfig
) -> 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<Vec<ExecutionResult>, RootNotFound>
[src]

pub fn get_module(
    &self,
    tracking_copy: Rc<RefCell<TrackingCopy<<S as StateProvider>::Reader>>>,
    deploy_item: &ExecutableDeployItem,
    account: &Account,
    correlation_id: CorrelationId,
    preprocessor: &Preprocessor,
    protocol_version: &ProtocolVersion
) -> Result<Module, Error>
[src]

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

pub fn apply_effect(
    &self,
    correlation_id: CorrelationId,
    protocol_version: ProtocolVersion,
    pre_state_hash: Blake2bHash,
    effects: AdditiveMap<Key, Transform>
) -> Result<CommitResult, Error> where
    Error: From<S::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> From<T> for T[src]

impl<T> FromBits<T> for T

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,