pub enum KernelImage {
Show 15 variants
GasMeter,
StorageQuota,
YieldCatcher,
Gas,
Quota,
SetGasMeter,
SetStorageQuota,
MintGas,
MintQuota,
CreateYieldCatcher,
OogMarker,
StorageExhaustedMarker,
File,
HostOpen,
HostSave,
}Expand description
Identifies which kernel-assisted Image a given image_hash chain refers to. Recognized by the registry’s content-hash lookup.
The well-known image_hash values are placeholders for Stage 3 —
Blake2b256::hash(b"kernel:name"). Stage 4 jar-kernel-v3 will
finalize the canonical encoding when it actually constructs the
kernel-known Image values at chain genesis.
Variants§
GasMeter
StorageQuota
YieldCatcher
Gas
Per-Instance Gas{meter_id} unit handle. State: meter_id: u64.
Quota
Per-Instance Quota{quota_id} unit handle.
SetGasMeter
SetStorageQuota
MintGas
MintQuota
CreateYieldCatcher
OogMarker
StorageExhaustedMarker
File
Per-Instance File{file_id} handle: stable σ-resident reference
produced by host_save / consumed by host_open. State:
file_id: u64.
HostOpen
Per-Instance HostOpen handle: kernel-issued cap that resolves
to the host_open host call dispatch.
HostSave
Per-Instance HostSave handle: symmetric counterpart.
Trait Implementations§
Source§impl Clone for KernelImage
impl Clone for KernelImage
Source§fn clone(&self) -> KernelImage
fn clone(&self) -> KernelImage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KernelImage
impl Debug for KernelImage
Source§impl Hash for KernelImage
impl Hash for KernelImage
Source§impl PartialEq for KernelImage
impl PartialEq for KernelImage
impl Copy for KernelImage
impl Eq for KernelImage
impl StructuralPartialEq for KernelImage
Auto Trait Implementations§
impl Freeze for KernelImage
impl RefUnwindSafe for KernelImage
impl Send for KernelImage
impl Sync for KernelImage
impl Unpin for KernelImage
impl UnsafeUnpin for KernelImage
impl UnwindSafe for KernelImage
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.