#[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 moreSource§impl Debug for StorageKey
impl Debug for StorageKey
Source§impl Encode for StorageKey
impl Encode for StorageKey
Source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
Source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy,
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy, )
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Source§impl Hash for StorageKey
impl Hash for StorageKey
Source§impl Ord for StorageKey
impl Ord for StorageKey
Source§fn cmp(&self, other: &StorageKey) -> Ordering
fn cmp(&self, other: &StorageKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for StorageKey
impl PartialEq for StorageKey
Source§fn eq(&self, other: &StorageKey) -> bool
fn eq(&self, other: &StorageKey) -> bool
self and other values to be equal, and is used by ==.