pub enum StorageKey {
StateHash,
ProgramHash,
PageHash(u64),
VmSpec,
VideoMode,
GuestCode,
Owner,
ResidentPages,
}Expand description
Storage keys used by CoreVM.
Variants§
StateHash
The hash of this CoreVM instance.
Computed with [corevm_engine::compute_state_hash].
ProgramHash
The hash of the program blob.
This is the first hash of the file.
PageHash(u64)
The last known hash of the memory page with the specified address.
VmSpec
The output data specification of the VM.
An instance of VmSpec.
VideoMode
The current video mode.
An instance of VideoMode.
GuestCode
The hash and service host of the guest code.
Owner
The owner of this CoreVM instance; they can reset the code.
ResidentPages
The pages currently in active use by the program.
Trait Implementations§
Source§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
If possible give a hint of expected size of the encoding. Read more
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, )
Convert self to a slice and append it to the destination.
Source§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
impl EncodeLike for StorageKey
Auto Trait Implementations§
impl Freeze for StorageKey
impl RefUnwindSafe for StorageKey
impl Send for StorageKey
impl Sync for StorageKey
impl Unpin for StorageKey
impl UnwindSafe for StorageKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more