#[non_exhaustive]pub enum StorageKey {
Gas,
StateHash,
PageInfo(PageNum),
VmSpec,
VideoMode,
AudioMode,
ExecEnvRef,
Owner,
IncomingServiceMessages,
OutgoingServiceMessages,
OutgoingMessage(u64),
IncomingMessage(ServiceMessage),
}Expand description
Storage keys used by CoreVM.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Gas
Inner VM gas.
StateHash
The hash of this CoreVM instance.
Computed with corevm_engine::compute_state_hash.
PageInfo(PageNum)
The last known metadata of a memory page with the specified page number.
An instance of PageInfo.
VmSpec
The output data specification of the VM.
An instance of VmSpec.
VideoMode
The current video output mode.
An instance of VideoMode.
AudioMode
The current audio output mode.
An instance of AudioMode.
ExecEnvRef
Execution environment location in the virtual file system.
The environment (ExecEnv) itself is stored as a file.
Owner
The owner of this CoreVM instance; they can reset the code.
IncomingServiceMessages
Incoming inter-service messages.
An instance of VecDeque<ServiceMessage>.
OutgoingServiceMessages
Outgoing inter-service messages.
An instance of MessageQueue<OutgoingServiceMessage>.
OutgoingMessage(u64)
Outgoing inter-service message with the specified index.
IncomingMessage(ServiceMessage)
Incoming inter-service message.
Trait Implementations§
Source§impl Clone for StorageKey
impl Clone for StorageKey
Source§fn clone(&self) -> StorageKey
fn clone(&self) -> StorageKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more