Crate linera_execution
source ·Expand description
This module manages the execution of the system application and the user applications in a Linera chain.
Re-exports§
pub use crate::system::SystemExecutionError;
pub use crate::system::SystemExecutionStateView;
pub use crate::system::SystemMessage;
pub use crate::system::SystemOperation;
pub use crate::system::SystemQuery;
pub use crate::system::SystemResponse;
Modules§
Structs§
- The result of calling into a user application.
- A WebAssembly module’s bytecode.
- A reference to where the application bytecode is stored.
- The identifier of a channel, relative to a particular application.
- A view accessing the execution state of a chain.
- Attempts to create an invalid
WasmRuntime
instance from a string. - Externally visible results of an execution. These results are meant in the context of the application that created them.
- A message together with routing information.
- A collection of prices and limits associated with block execution.
- The resources used so far by an execution process.
- Description of the necessary information to run a user application.
Enums§
- A type for errors happening during execution.
- Externally visible results of an execution, tagged by their application.
- System runtime implementation in use.
- A message to be sent and possibly executed in the receiver’s block.
- The kind of outgoing message being sent.
- An operation to be executed in a block.
- An query to be sent and possibly executed in the receiver’s block.
- The response to a query.
- The runtime to use for running the application.
Traits§
- Requirements for the
extra
field in our state views (and notably theExecutionStateView
). - The public entry points provided by the contract part of an application.
- A factory trait to obtain a
UserContract
from aUserContractModule
- The public entry points provided by the service part of an application.
- A factory trait to obtain a
UserService
from aUserServiceModule
- Trait used to select a default WasmRuntime, if one is available.
Type Aliases§
- Alias for
linera_base::identifiers::ApplicationId
. Use this alias in the core protocol where the distinction with the more general enumGenericApplicationId
matters. - An implementation of
UserContractModule
. - An implementation of
UserContract
. - An implementation of
UserServiceModule
. - An implementation of
UserService
.